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: solaris cpp problem


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

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