转载请注明:http://blog.csdn.net/fuqiangnxn/article/details/77449136
相关文章:
https://www.experts-exchange.com/questions/25023160/executeable-relocation-error-executeable-undefined-symbol-fstat.html
https://stackoverflow.com/questions/29175308/undefined-symbol-when-loading-a-shared-library
https://stackoverflow.com/questions/32903870/symbol-lookup-error-at-runtime-instead-of-load-time
https://stackoverflow.com/questions/27054737/how-to-fix-symbol-lookup-error-undefined-symbol-errors-in-a-cluster-environment
这种问题主要原因为:没有连接到动态连接stat的动态连接库。
使用ldd及nm -D命令进行查看。
博主使用两个命令发现ldd已经将所有动态库都连接OK,但nm找到stat的状态为U(undefined),最后发现编译时使用的动态连接库与运行时的动态连接库不是同一版本,使其一致后重新编译,搞定该问题