This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: NewBie: ld linker problem


>>>>> ">" == 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.

For instance:

>> /usr/local/lib/libgcj.so: undefined reference to `deflate'

You need zlib.

>> /usr/local/lib/libgcj.so: undefined reference to `GC_obj_kinds'

You need the GC.

Tom

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]