www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/09/12/10:22:44

From: p-ciccone AT usa DOT net DOT removetoreply (Paolo Ciccone)
Subject: Re: JNI and GCC
12 Sep 1997 10:22:44 -0700 :
Message-ID: <wk7mcm8n8y.fsf.cygnus.gnu-win32@usa.net.removetoreply>
References: <Pine DOT HPP DOT 3 DOT 95 DOT 970909144126 DOT 27330B-100000 AT sentef2 DOT fi DOT uib DOT no>
To: Igor Boukanov <boukanov AT sentef2 DOT fi DOT uib DOT no>

>>>>> "IB" == Igor Boukanov <boukanov AT sentef2 DOT fi DOT uib DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019