shared library

Tom Tromey tromey@redhat.com
Tue Oct 23 17:33:00 GMT 2001


>>>>> "Jayesh" == Jayesh K Parayali <jparayali@TOTALFLOOD.com> writes:

>> I compiled postgres jdbc jar into jdbc.so using gcj and moved it into
>> usr/local/gcc/lib which is in my LD_LIBRARY_PATH
>> Then I created an application which uses jdbc and compiled it to
>> native code using gcj
>> now when I run the application, it's not able to find(load) the jdbc
>> driver.

>> Note that the application works fine 
>> 1.) If I add the jdbc jar file to my CLASSPATH
>> 2.) Or compile the application with jdbc.so

For #2 do you mean you have to link using `-ljdbc'?
If so then that is normal. Right now using gcj isn't much different
from using gcc or g++. You have to link against the libraries you
use. I'm surprised that your application could link without this.
Tom


More information about the Java mailing list

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