Linux how to see the value of CXX and CXXFLAG

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6781894/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 05:11:34  来源:igfitidea点击:

how to see the value of CXX and CXXFLAG

c++linuxubuntukubuntu

提问by A. K.

before compiling my C++ program, i exported the CXXand CXXFLAGSfrom the command line.

before compiling my C++ program, i exported the CXXand CXXFLAGSfrom the command line.

$ export CXX="/media/space/gcc-dist/bin/g++"

$ export CXX="/media/space/gcc-dist/bin/g++"

$ export CXXFLAGS="-std=c++0x"

$ export CXXFLAGS="-std=c++0x"

But now i want to see the values of CXXand CXXFLAGS. How do i do that. I'm using KUbuntu 11.04

But now i want to see the values of CXXand CXXFLAGS. How do i do that. I'm using KUbuntu 11.04

采纳答案by templatetypedef

You can usually do this on Linux systems by opening a terminal and entering

You can usually do this on Linux systems by opening a terminal and entering

echo $CXX
echo $CXXFLAGS