This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/28153] Under Windows Xp the generated JNI headers need to have a '_' prepended for each function.



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]