dll for JNI
843829Sep 5 2003 — edited Sep 8 2003Hi All
At present I have spent a couple of days trying to follow the JAVA tutorial for a JNI hello world app. I am totally stalled on trying to create a dll, even at this simple level, using dev-c++, which is all I've got. If anyone knows the trick, please let me know.
I've tried every combination of settings I can imagine. Finally, I have
copied the command line instructions from the mingw FAQ at
http://www.mingw.org/mingwfaq.shtml#faq-jni-dll, and this does not work
either. I get an error message 'incorrect command line option: -iprefix. This is difficult to debug, as iprefix is not part of the command. The command is
gcc -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at -Ic:/j2sdk1.4.1_02/include -
Ic:/j2sdk1.4.1_02/include/win32 -shared someJavaImp.c -o JavaImp.dll
I am 'working' - or would like to be - in a winME environment.
I would be extremely grateful for any information leading to the successful creation of a dll with the tools available to me.
yours frustrated
andrew