This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: solaris cpp problem
- To: Charlie McDowell <charlie at cse dot ucsc dot edu>
- Subject: Re: solaris cpp problem
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Thu, 24 Feb 2000 15:26:44 -0800 (PST)
- Cc: java-discuss at sourceware dot cygnus dot com, Tom Tromey <tromey at cygnus dot com>
- References: <38B56F26.2D981C81@cse.ucsc.edu><200002241832.KAA26735@ferrule.cygnus.com><38B5B9F6.B29C5C38@cse.ucsc.edu>
>>>>> "Charlie" == Charlie McDowell <charlie@cse.ucsc.edu> writes:
Charlie> I can now compile hello world but it isn't finding libgcj. I
Charlie> believe I can figure this one out (you are welcome to offer
Charlie> your help anyway).
Do you mean it isn't finding it at link time or at run time?
At link time is one sort of bug. Most typical cause: you didn't
configure gcc and libgcj with the same --prefix value.
At run time is another sort of bug. Most typical solution: set
LD_LIBRARY_PATH to include the libgcj lib directory, or use -rpath to
compile the directory into the executable.
Anthony once suggested (here? or was it privately? I don't recall)
that we have libgcj.spec include the -rpath command for the linker.
This will make programs work out of the box. Is there any downside to
this?
Tom