我在Mac OSX Mountain Lion上使用http://hpc.sourceforge.net上的gcc 4.8.1 .我正在尝试编译一个使用该to_string函数的C++程序<string>.我-std=c++11每次都需要使用旗帜:
to_string
<string>
-std=c++11
g++ -std=c++11 -o testcode1 code1.cpp
有没有办法默认包含这个标志?
g++ c++11
c++11 ×1
g++ ×1