QT
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 · 3118 阅读 · 0 评论 -
ubuntu qt error: undefined reference to
error: undefined reference to在QT中出现error: undefined reference to或者在终端出现对‘GeographicLib::Geocentric::Geocentric(double, double)’未定义的引用这一类的错误是由于程序使用了第三方库,但编译的时候没有声明。在QT中添加LIBS += -l(第三方库)在终端使用g++ -o exam exam.cpp -l (第三方库)即可解决这个问题...原创 2020-09-28 20:31:27 · 831 阅读 · 0 评论
分享