Oki do have a libg.a on my system in /usr/lib, i think its some library
for debugging, if i tryt to cpmpile my app, and leave off the -g i dont
get the error, is the libg come with gdb and somewhow i missed getting a
plam version installed? Im not sure.

On Sat, 20 Nov 1999, Scott C. Knight wrote:

> Thats the thing i dont have any library called libg.a, ive checked, what
> package is it supposed to be installed with? I have no idea, is it a prc
> -tools thing or what? Ive installed newer versions of gcc again from john
> marhsals page. The odd thing again is, i cant compile my won porgams, but
> i have gotta program to compile. Weird.
> 
>       Scott Knight
> 
> On Sat, 20 Nov 1999, Michael Pearce wrote:
> 
> > >   Ok i am trying to compile a test porgam with gcc cross compiler, i
> > > keep getting this error.
> > > 
> > > [scott@fletch hello-4]$ make
> > > m68k-palmos-gcc -O0 -g   -c Hello.c -o Hello.o
> > > #               touch Hello.c
> > > # enable this line if you want to compile EVERY time.
> > > m68k-palmos-gcc -O0 -g   Hello.o -o Hello
> > > /usr/local/palm/m68k-palmos/bin/ld: cannot open -lg: No such file or
> > > directory
> > > collect2: ld returned 1 exit status
> > > make: *** [Hello] Error 1
> > > [scott@fletch hello-4]$ 
> > 
> > It's looking for a file called libg.a, which on my system is located in
> > /usr/local/pilot/m68k-palmos-coff/lib, on yours it is probably in
> > /usr/local/palm/m68k-palmos/lib.  Ideally, your linker (ld) should be built to
> > know about that directory.  If yours isn't, you can try adding a -L option
> > onto your command line:
> > 
> > m68k-palmos-gcc -O0 -g   Hello.o -o Hello -L/usr/local/palm/m68k-palmos/lib
> > 
> > -- 
> > Michael Pearce <[EMAIL PROTECTED]>                           +1 314 386 0663
> > Coreth Consulting, Inc.                              St. Louis, Missouri, USA
> > 
> > 
> 
> 
> 

Reply via email to