I switch between so many projects and IDEs a lot. They run each project with default options of IDE. For example
g++ test.cpp
I know make file
can solve the problem. But it is not IDE friendly way. I am thinking if there is any way to impose option
-std=c++11
In the code rather than in calling g++.
The same problem with linker. I want to tell the linker in the code that I want to link to armadillo library
-larmadillo
Maybe setting a prepossessing command could solve the problem. Is there any solution for it?