I am compiling a library in C/C++ with mingw32 that will be used by a java application.
The problem is that i get the error message java.lang.UnsatisfiedLinkError when the java calls the function in the library.
Further investigation into the library (with nm) shows me that the symbol which needs to be called is incorrect.
Instead getting the symbol _Java_foo_function, the symbol saw in the library is _Java_foo_function@12.
So, can you help me to get rid of this issue ?
For your information, I tried to compile the same library under linux using GCC and the error does not appear.