java.lang.UnsatisfiedLinkError,(A file or directory in the path name does not exist.

    技术2022-05-18  19

     

    java.lang.UnsatisfiedLinkError:somelib.so (A file or directory in the path name does not exist.) 

    如果要编译64位的模块需要使用-q64的参数,默认是-q32,仅仅使用64位的头文件或lib是不行的。然后,通过dump -X32_64 -ov <file>命令,我们可以查看编译出来的文件是64位还是32位,经过比对,所用的库果然是32位的,使用-q64重新编译后,问题解决。AIX

     

    在AIX 6.1下面,这个参数变成了-maix64:

     

    gcc -I$JAVA_HOME/include -I$JAVA_HOME/include/linux -shared -c StringTest.c converter.c -maix64  

    另外,AIX很傻瓜GBK不是gbk,UTF8一定要写成UTF-8,or else does not works!

     

     


    最新回复(0)