[Bug java/28153] Under Windows Xp the generated JNI headers need to have a '_' prepended for each function.
tromey at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jun 27 04:09:00 GMT 2006
------- Comment #5 from tromey at gcc dot gnu dot org 2006-06-27 03:20 -------
Yeah, jni.cc handles the lookup side of things.
The declaration side of things in user JNI code should be
handled by jni_md.h. It has a bunch of win32-specific code
which boils down to:
#define JNIIMPORT __declspec(dllimport)
#define JNIEXPORT __declspec(dllexport)
#define JNICALL __stdcall
It might be handy to see a small preprocessed source file.
Perhaps you're picking up the wrong jni.h, jni_md.h, or
perhaps the logic in jni_md.h is broken somehow.
Oops, I just looked at your version... jni_md.h is not in
3.4. In 3.4 the same logic appears, only it is in jni.h.
It is possible that we fixed some bugs in this area since 3.4.
I don't remember.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28153
More information about the Gcc-bugs
mailing list