NewBie: ld linker problem

Bryce McKinlay bryce@albatross.co.nz
Sat Apr 1 00:00:00 GMT 2000


Tom Tromey wrote:
> >>>>> ">" == indio <indio@technologist.com> writes:
>> >> The program (little) works fine. I am trying link it now with libgcj:
> >> ld -o little.o -lgcj little
> >> But something is wrong. What?
>> Don't do that. Use gcj to link. gcj links in all the libraries you
> need, behind your back.

I think the question indio was trying to ask here was really:
"How do I statically link libgcj (and the libgcjgc, etc) into my application?"
gcj will statically link if you actually delete the .so files from your library
path. But there must be a better way than that. If someone wants to tell me the
answer or add it to the FAQ I'd be very happy too.
regards
 [ bryce ]


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /