Scott C. Knight writes:
> Oki do have a libg.a on my system in /usr/lib, i think its some library
> for debugging,

Yes, that's what libg is, but the one in /usr/lib is no use to you here
because it is for native Unix programs, not the m68k-palmos programs you
build with your cross-compiler.

> if i tryt to cpmpile my app, and leave off the -g i dont
> get the error,

Correct, it's only needed for a debug link.

> somewhow i missed getting a
> plam version installed? Im not sure.

libg.a comes from the same place as libc.a and is one of the grey areas
of the old prc-tools that I haven't looked into yet.  It looks like Jeff
had something planned for this, but in 0.5.0 it's actually exactly the
same as libc.a.  (Possibly it ought to be libc.a but with debugging
symbols, but I don't think that's the current state.)  Fortunately it
doesn't matter, because you don't really need anything from libc.a
anyway (you're apparently supposed to be using code-space efficient
Palm OS equivalents of C library functions).

So the easiest and best fix is to shut up the linker by creating a libg.a:

# cd /usr/local/palm/m68k-palmos/lib
# cp libc.a libg.a

    John

Reply via email to