I cannot find binaries for glpk_jni so
I use MSYS+MinGW to create DLL from .a static library.
According to compile document on this site I run a2dll
to call dllwrap/dlltool but i got this error in java
** java.lang.UnsatisfiedLinkError: ...\glpk_jni.dll:
The specified procedure could not be found
The procedure entry point Java_org_gnu_glpk_GlpkSolver_addCols could not be located in the dynamic link library glpk_jni.dll
I did these to package the DLL
cd .dll
ar x ../glpk_jni.dll.a
dllwrap --def ../glpk_jni.def --export-all
-o ../glpk_jni.dll ls
I found the export in DLL with PE Explorer:
Java_org_gnu_glpk_GlpkSolver_addCols@12
Any suggestion is welcome! Thanks in advance!
Henry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I compared my glpk_jni.dll with other JNI DLL
and found that other JNI DLL begins with an underline:
_Java_org_eclipse_ant_core_EclipseFileUtils_internalCopyAttributes@20
Just wonder if this is the reason,
and which flag of gcc in Makefile.mingw should i change
to add the underline?
Henry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I cannot find binaries for glpk_jni so
I use MSYS+MinGW to create DLL from .a static library.
According to compile document on this site I run a2dll
to call dllwrap/dlltool but i got this error in java
** java.lang.UnsatisfiedLinkError: ...\glpk_jni.dll:
The specified procedure could not be found
The procedure entry point Java_org_gnu_glpk_GlpkSolver_addCols could not be located in the dynamic link library glpk_jni.dll
I did these to package the DLL
cd .dll
ar x ../glpk_jni.dll.a
dllwrap --def ../glpk_jni.def --export-all
-o ../glpk_jni.dll
lsI found the export in DLL with PE Explorer:
Java_org_gnu_glpk_GlpkSolver_addCols@12
Any suggestion is welcome! Thanks in advance!
Henry
I compared my glpk_jni.dll with other JNI DLL
and found that other JNI DLL begins with an underline:
_Java_org_eclipse_ant_core_EclipseFileUtils_internalCopyAttributes@20
Just wonder if this is the reason,
and which flag of gcc in Makefile.mingw should i change
to add the underline?
Henry
Perhaps adding the options
--add-stdcall-alias
and / or
--enable-stdcall-fixup
will help.