GCC compiler not recognizing c++11?

How can I fix this?
-std=c++11
g++ -std=c++11 main.cpp
Registered users can post here. Sign in or register to post.