Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9016721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:04:26+00:00 2026-06-16T04:04:26+00:00

I have Xcode 4.5.2 on Moutain Lion, and I have install the lastest Command

  • 0

I have Xcode 4.5.2 on Moutain Lion, and I have install the lastest “Command Line Tools” but when I tried to compile with g++ or clang++ (and the options -std=c++11 -stdlib=libc++) I get an error.
With g++:

cc1plus: error: unrecognized command line option "-std=c++11"
cc1plus: error: unrecognized command line option "-stdlib=libc++" 

With clang++:

clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)

It’s in a Qt project.

So how can I used the C++11 on my Mac ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T04:04:27+00:00Added an answer on June 16, 2026 at 4:04 am

    As you found, g++ does not support those command line options.

    It sounds like you’re using Xcode.

    For clang, you should look at the project settings, and make sure that the “Deployment Target” is set to 10.7 (or 10.8)

    What the error message is telling you is that libc++ is not available for 10.6 and before.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m running Mac OS X v10.8 (Mountain Lion) with Xcode 4.5.1 with command line
I have Xcode 4.3 installed on Mac OS Lion, but I can't find a
I know and have Xcode, but I was wondering if there were any other
i have searched Xcode controls but doesn't found anything that makes a GridView like
I am trying to compile with javac on Snow Leopard through the command line.
I have XCode installed and also FreeTDS. I tried to connect to my SQL
I am attempting to install the cocos2d templates on XCode 4.4 on Mountain Lion.
rvm install 1.9.3 --with-gcc=clang (as suggested by Can't install Ruby under Lion with RVM
I have xcode 4.5 installed on my mac running mountain lion. And i have
I have recently updated to OSX Mountain Lion Xcode 4.4. Now I can't find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.