I am using windows 8.1 and have installed GCC compiler on my machine. Every time I have to compile a c++ file (using c++ 11 features), on the command prompt I need to type g++ file.cpp -std=c++11. Is there a way so that I don't need to type -std=c++11 everytime? Also please note that I cannot use make files and the file will always be compiled through command line.
Asked
Active
Viewed 1,904 times
0
-
2Can you add alias like g++11 = g++ -std=c++11 ? – Eric Fortin Mar 21 '14 at 09:44
-
5How about using a buildsystem? – peppe Mar 21 '14 at 09:44
-
What Development Environment do you use? Eg.: CodeBlocks can be configured to compile c++11 by default. – Rad1 Mar 21 '14 at 09:46