JNI and GCC

Paolo Ciccone p-ciccone@usa.net.removetoreply
Fri Sep 12 10:21:00 GMT 1997


>>>>> "IB" == Igor Boukanov <boukanov@sentef2.fi.uib.no> writes:

    IB> Hi, I tried to use gcc from b18 to implement JNI native
    IB> libraris but without much success, i.e. I was able to create
    IB> dll, but I could not load libarary from JVM. After the
    IB> execution: System.load("C:\\test\\test.dll"); I always got:
    IB> java.lang.UnsatisfiedLinkError: C:\test\test.dll at
    IB> java.lang.Runtime.load(Runtime.java:397) at
    IB> java.lang.System.load(System.java:553) at
    IB> Prompt.main(Prompt.java:32)

Are you using C++ or C ? I experienced a similar problem with code
that was compiled as C++ (with Borland C++). When I renamed the module
to .c it linked ok.


                                                  Paolo

-- 
The opinions expressed here are exclusively my own

Remove the extra junk to my e-mail address to reply, sorry for the
inconvenience, I get spammed a lot.

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list