欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

libboost_filesystem.so: undefined reference to

发布时间:2025/4/16 编程问答 49 豆豆
生活随笔 收集整理的这篇文章主要介绍了 libboost_filesystem.so: undefined reference to 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

caffe 编译时出现的错误:

/usr/lib64/libboost_filesystem.so: undefined reference to `boost::system::get_system_category()' /usr/lib64/libboost_filesystem.so: undefined reference to `boost::system::get_generic_category()'

解决方案:
通过查找libboost_filesystem.so,发现/usr/lib64/下面没有这个文件,这个文件在/usr/local/lib下面。于是,在Makefile.config文件里面的最后一行,‘’-L/usr/local/lib‘’。

make clean make -j10

问题解决。

总结

以上是生活随笔为你收集整理的libboost_filesystem.so: undefined reference to的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。