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
how to see the value of CXX and CXXFLAG
提问by A. K.
before compiling my C++ program, i export
ed the CXX
and CXXFLAGS
from the command line.
before compiling my C++ program, i export
ed the CXX
and CXXFLAGS
from 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 CXX
and CXXFLAGS
. How do i do that.
I'm using KUbuntu 11.04
But now i want to see the values of CXX
and 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