ubuntu
Gallant King
这个作者很懒,什么都没留下…
展开
-
undefined reference to symbol ‘_ZN5boost6system15system_categoryEv‘
在ubuntu中编译代码时出现了如下错误::-1: error: CMakeFiles/**/main.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'经过我仔细的查找问题后发现原因是在编译时没有链接boost_system和boost_filesystem这两个库,如果采用GCC或G++编译的话,可以在末尾直接添加 -lboost_system -lboost_file_system如果在ubunt原创 2021-03-08 22:14:17 · 2400 阅读 · 0 评论 -
ubuntu error while loading shared libraries: lib*.so.*: cannot open shared object file
ubuntu中程序编译通过,运行时却报错,error while loading shared libraries: lib…so: cannot open shared object file: No such file or directory这和系统默认的动态库搜索路径有关解决方案,找到对应的动态库(即.so文件路径),如/usr/local/include然后,在终端运行如下命令sudo gedit /etc/ld.so.conf将上述路径写入文件中include /etc/ld.s原创 2020-09-28 20:40:24 · 3091 阅读 · 0 评论