Posted By:
Anna_Zacchi
Posted On:
Friday, May 8, 2009 02:47 PM
I'm trying to compile JNI stubs but I get the compilation errors: dispatch_x86.c: In function `asm_dispatch': src/docksyJNI/dispatch_x86.c:16: error: syntax error before '{' token dispatch_x86.c: At top level: dispatch.c:84: error: conflicting types for 'asm_dispatch' dispatch_x86.c:15: error: previous definition of 'asm_dispatch' was here compile command: gcc -c -I"C:Program FilesSunSDKjdkinclude" -I"C:Program FilesSunSDKjdkincludewin32" -I"bin" -o dispatch.o dispatch.c dispatch_x86.c I use MinGW 3.15 gcc compiler in Eclipse 3.5 on windows XP. JDK 6.0 I got the stubs from http://java.sun.com/javase/6/docs/technotes/guides
More>>
I'm trying to compile JNI stubs but I get the compilation errors:
dispatch_x86.c: In function `asm_dispatch':
src/docksyJNI/dispatch_x86.c:16: error: syntax error before '{' token
dispatch_x86.c: At top level:
dispatch.c:84: error: conflicting types for 'asm_dispatch'
dispatch_x86.c:15: error: previous definition of 'asm_dispatch' was here
compile command:
gcc -c -I"C:Program FilesSunSDKjdkinclude" -I"C:Program FilesSunSDKjdkincludewin32" -I"bin" -o dispatch.o dispatch.c dispatch_x86.c
I use MinGW 3.15 gcc compiler in Eclipse 3.5 on windows XP. JDK 6.0
I got the stubs from
http://java.sun.com/javase/6/docs/technotes/guides/jni/
Looking at the code I have:
void asm_dispatch(void *func, int nwords, long *c_args, int ty, long *resP)
{
and
extern void
asm_dispatch(void *func, int nwords, word_t *c_args, ty_t ty, jvalue *resP);
I see that the types are different, but wondering why they worked for other people before me and I cannot compile.
Thanks,
Anna
<<Less