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


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 ]



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