B
Barth?l?my von Haller
Hello!
I'm trying to do a c library who will be called from a piece of java
code (JNI). I have the following error when I compile this library :
customJNI.c: In function
`Java_com_xilinx_XHWIF_Boards_custom_customGetSystemInfo':
customJNI.c:55: warning: passing arg 1 of `GetSystemInformation' from
incompatible pointer type
in customJNI.c:55:
result = GetSystemInformation(body, length); // function in custom.c
with jint *body; and jint length;
and in custom.c :
long GetSystemInformation(unsigned long *data, long length) {...}
I understand that GetSystemInformation wait for a pointer unsigned
long and that I give to it an *jint, but I don't know which cast I
must use ?
Thank you, regards
Barthélémy von Haller
I'm trying to do a c library who will be called from a piece of java
code (JNI). I have the following error when I compile this library :
customJNI.c: In function
`Java_com_xilinx_XHWIF_Boards_custom_customGetSystemInfo':
customJNI.c:55: warning: passing arg 1 of `GetSystemInformation' from
incompatible pointer type
in customJNI.c:55:
result = GetSystemInformation(body, length); // function in custom.c
with jint *body; and jint length;
and in custom.c :
long GetSystemInformation(unsigned long *data, long length) {...}
I understand that GetSystemInformation wait for a pointer unsigned
long and that I give to it an *jint, but I don't know which cast I
must use ?
Thank you, regards
Barthélémy von Haller