From: Samuel H. <sam...@gm...> - 2013-08-24 15:05:32
|
Hi all, My MinGW cross-builds (from Linux for Windows 64 bit) seem to be working great. However, the 32 bit builds are not working. I am building Java native libraries and, although my library is loaded by a 32 bit JVM, any attempts to access the native function are resulting in an UnsatistiedLinkError. e.g. I have a function in Java with signature double ddot(int, double[], int, double[], int) the C signature is JNIEXPORT jdouble JNICALL Java_com_github_fommil_netlib_NativeRefBLAS_ddot (JNIEnv *, jobject, jint, jdoubleArray, jint, jdoubleArray, jint); (note that jint is typedefd as a long, which is the same size as an int on Windows) and the C implementation matches this. I have checked the i686-w64-mingw32-objdump of my binary and it says the function is there: [ 22] Java_com_github_fommil_netlib_NativeRefBLAS_ddot@28 So what could be going wrong? The bizarre thing is that the 64 bit build works fine, so this seems to be a problem I'm only experiencing with the MinGW 32 bit cross compiler. -- Sam |