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

 

在我代码进行编译的时候发现如下情况:

$ 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

没得摩西摩西的问题,是我的问题,留个记录。

 

posted @ 2018-01-08 13:05  looking weather  阅读(5926)  评论(0编辑  收藏  举报