Having an old Intel Core Duo MacBook with Snow Leopard, when I try to compile using g++ and the input parameter std=c++0x I get:
cc1plus: error: unrecognized command line option "-std=c++0x"
Any ideas of how to fix this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
c++0x / c++11 support has only been added starting with gcc v4.3, see this page to check what c++ feature has been added in what gcc version.
Alternatively you could use the clang++ compiler, which also comes standard with XCode. See this page for version info.
Or install gcc47 from macports
Btw, better use
-std=c++11, thec++0xoption is not supported by clang.