Tag Info

Hot answers tagged


First Aliases have to be explicitly enabled for non-interactive shells, so I doubt this will work in a makefile. @muru You could use an alias in your .bashrc Edit your .bashrc via nano .bashrc and add the line below at the end of the file alias g++11="g++ -std=c++11" After that start a source .bashrc Now you can use g++11. But you ...


If you're using a Makefile simply do this: CXXFLAGS=-std=c++11 all: ${TARGET} g++ ${CXXFLAGS} -o ${TARGET} ${TARGET}.cpp

Only top voted, non community-wiki answers of a minimum length are eligible