JNI: Compiled succesfull, hang on execute [2/3] "StrLen.c" (1/1) [message #143345] |
Sat, 16 April 2005 15:29 |
Eclipse User |
|
|
|
Originally posted by: MatthiasBecker.hamburg.de
Hello
i have a problem with getting JNI running.
Attached to this post are my three files. When i try to execute the java file
the programm just hangs when it comes to the System.load() command. I am not
sure whether the DLL is loaded or not.
This is my compiler command:
gcc -I"c:\java\include\win32" -O3 -Wall -c -fmessage-length=0
And this is my linker command:
dllwrap --output-def simplejni.def --add-stdcall-alias
(I found this linker part in a post earlier to this problem but so far it did
not help me.)
This is my output:
------------------------------------------------------------ -------------------------------
**** Full rebuild of configuration Release for project JNI_Test_C ****
make -k clean all
rm -rf StrLen.o StrLen.d JNI_Test_C.dll
Building file: ../StrLen.c
gcc -Ic:\java\include\win32 -O3 -Wall -c -fmessage-length=0 -oStrLen.o
.../StrLen.c
Finished building: ../StrLen.c
Building target: JNI_Test_C.dll
dllwrap --output-def simplejni.def --add-stdcall-alias -o JNI_Test_C.dll
StrLen.o
dllwrap: no export definition file provided.
Creating one, but that may not be what you want
Finished building: JNI_Test_C.dll
Build complete for project JNI_Test_C
------------------------------------------------------------ -------------------------------
Unfortunally i am not familar with the dllwrap command so i dont know what the
error "dllwrap: no export definition file provided." really means...
I am useing eclipse 3.0.2 with cdt 2.1.1. The project is a managed C project.
Thanks in advantage
Matthias
Attachment: StrLen.c
(Size: 0.17KB, Downloaded 151 times)
|
|
|
Powered by
FUDForum. Page generated in 0.02849 seconds