[英]how to know which c++ version is uesd when use -lstdc++ to build cpp file
I need to use gcc to build c++ files and gcc command is like "gcc -g test.cpp -lstdc++ -o out". 我需要使用gcc来构建c ++文件,gcc命令就像“gcc -g test.cpp -lstdc ++ -o out”。 How can i know which c++ version is used to build test.cpp?
我如何知道用于构建test.cpp的c ++版本?
First of all don't use gcc -lstdc++
, use g++
instead. 首先不要使用
gcc -lstdc++
,而是使用g++
。 The used C++ version can be seen in the output of g++ --version
. 使用的C ++版本可以在
g++ --version
的输出中看到。 gcc --version
shows the same output gcc --version
显示相同的输出
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.