简体   繁体   中英

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". How can i know which c++ version is used to build test.cpp?

First of all don't use gcc -lstdc++ , use g++ instead. The used C++ version can be seen in the output of g++ --version . gcc --version shows the same output

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM