You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm compiling it with gcc -Wall -g -fPIC -c f.c -o f.o and then gcc -shared -o libf.so f.o. To put it in the the jar I do java -jar ~/src/java/JNAerator/jnaerator/target/jnaerator-0.13-SNAPSHOT-shaded.jar -runtime BridJ -mode Jar f.c libf.so. Gcc version is 5.1.0.
The Scala code I'm calling the function from is:
The error is raised by line println(q.get.a). If I change the code to print the values in s it doesn't print them for some reason. Also, if I return the int or double in s, I get random values.
Cheers,
Ricardo
The text was updated successfully, but these errors were encountered:
Hi, I get this error when trying to access a field of a pointer to a struct returned from C function call. The C code is the following:
I'm compiling it with
gcc -Wall -g -fPIC -c f.c -o f.o
and thengcc -shared -o libf.so f.o
. To put it in the the jar I dojava -jar ~/src/java/JNAerator/jnaerator/target/jnaerator-0.13-SNAPSHOT-shaded.jar -runtime BridJ -mode Jar f.c libf.so
. Gcc version is 5.1.0.The Scala code I'm calling the function from is:
The error is raised by line
println(q.get.a)
. If I change the code to print the values ins
it doesn't print them for some reason. Also, if I return the int or double ins
, I get random values.Cheers,
Ricardo
The text was updated successfully, but these errors were encountered: