摩西

gcc 错误 //usr/lib/x86_64-linux-gnu/libstdc++.so.6 ...

跟風遠走 提交于 2019-11-27 22:50:16
在我代码进行编译的时候发现如下情况: $ gcc -o mian main. cpp /usr/bin/ ld : /tmp/ccSHkr4u.o: undefined reference to symbol ' _ZTVN10__cxxabiv117__class_type_infoE@@CXXABI_1.3 ' // usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status 问题   使用了c++的环境,所以要用g++编译: g++ -o mian main. cpp 没得摩西摩西的问题,是我的问题,留个记录。 转载于:https://www.cnblogs.com/Hocker/p/8242155.html 来源: https://blog.csdn.net/weixin_30301183/article/details/99790426