Menu

a2dll not working for glpk_jni

Help
thlin
2005-01-26
2012-07-26
  • thlin

    thlin - 2005-01-26

    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

     
    • thlin

      thlin - 2005-01-26

      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

       
    • GnuWin

      GnuWin - 2005-01-26

      Perhaps adding the options
      --add-stdcall-alias
      and / or
      --enable-stdcall-fixup
      will help.

       
MongoDB Logo MongoDB