首页 > 代码库 > ./Encryptor: undefined symbol:Z11startserviceLAKJDFLJALDKJFLLLLL

./Encryptor: undefined symbol:Z11startserviceLAKJDFLJALDKJFLLLLL

在Linux下编译得Encryptor文件,但是执行./Encryptor时 报了如上错误:undefined symbol:Z11startserviceLAKJDFLJALDKJFLLLLL

原因分析:执行过程中找不到startservice这个函数的定义

——>可能是封装startservice这个函数的.so库未找到

——>封装startservice这个函数的库名是libsocklib3.so(存在于本地目录lib目录中)

——>通过echo $LD_LIBRARY_PATH命令查找库路径得:

/home/oracle/tuxedo11gR1/lib:

/home/oracle/tuxedo11gR1/jre/lib/i386/server:

/home/oracle/tuxedo11gR1/jre/jre/bin:

/usr/local/lib:

/usr/lib/oracle/11.1.0.1/client/lib

最后把/usr/lib/libsocklib3.so中的libsocklib3.so库更新为本地目录lib下的libsocklib3.so即可

./Encryptor: undefined symbol:Z11startserviceLAKJDFLJALDKJFLLLLL