This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Compiling of GCJ and SWT under MacOS X
On Thu, 10 Feb 2005 11:25:44 -0800 (PST), Andi Vajda
<andi@osafoundation.org> wrote:
>
> >> - on Windows, Mingw gcj's jni doesn't use __stdcall for JNICALL, so there is
> >> calling convention mismatch when linking against non-mingw-gcj-recompiled
> >> JNI libs there
> >
[...]
> Actually I went back to the code and verified the following:
>
> - mingw gcj's jni.h does in fact define JNICALL to __stdcall
> - I have to redefine it to nothing after including <jni.h> otherwise I get
> an UnsatisfiedLinkError on one of the functions (Db_get) as soon as I
> try to use the library
>
> This happens with Berkeley DB 4.3.27's libdb_java, the SWIG generated JNI
> bindings for its db library.
Sounds suspiciously similar to a recently
reported problem:
http://gcc.gnu.org/ml/java/2005-01/msg00029.html
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.hostingzero.com/