GCC compiler not recognizing c++11?

How can I fix this?
-std=c++11
g++ -std=c++11 main.cpp
Topic archived. No new replies allowed.