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

$ 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

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2021-09-04
  • 2021-09-04
  • 2021-12-13
猜你喜欢
  • 2022-01-03
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-05-17
相关资源
相似解决方案