JNI: Compiled succesfull, hang on execute [1/3] "strlen.h" (1/1) [message #143371] |
Sat, 16 April 2005 19:29 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.h
(Size: 0.39KB, Downloaded 120 times)
|
|
|
Powered by
FUDForum. Page generated in 0.04723 seconds