This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/28153] Under Windows Xp the generated JNI headers need to have a '_' prepended for each function.
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2006 03:20:19 -0000
- Subject: [Bug java/28153] Under Windows Xp the generated JNI headers need to have a '_' prepended for each function.
- References: <bug-28153-12871@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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