>       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