摘要: 报错: ld: cannot find -lstdc++ ld: cannot find -lgcc_s 解析: 命名规则是:lib+库名(gcc_s)+.so 原因: 1 系统没有安装相对应的lib2 相对应的lib版本不对3 lib(.so档)的symbolic link 不正确,没有连结到正确 阅读全文
posted @ 2022-05-26 22:58 半日闲1 阅读(198) 评论(0) 推荐(0) 编辑
摘要: cmake 出现 The CXX compiler identification is unknown 原因:cmake找不到C++的编译器(比如找不到g++) 解决:安装g++ yum list gcc-c++ yum install gcc-c++.x86_64 阅读全文
posted @ 2022-05-26 22:45 半日闲1 阅读(1574) 评论(0) 推荐(0) 编辑
摘要: 可能原因:动态文件的目录不在系统默认的库搜索目录中。 此时需要:加入动态库文件所在的目录:执行vi /etc/ld.so.conf,在"include ld.so.conf.d/*.conf"下方增加"/usr/local/lib"。 保存后,在命令行终端执行:/sbin/ldconfig -v;其 阅读全文
posted @ 2022-05-26 22:39 半日闲1 阅读(329) 评论(0) 推荐(0) 编辑