• About
  • References
    • Mathematical Identities
    • Programming
    • Data Mining, etc.

The Art of Software

The Art of Software

Tag Archives: xcode

Compiler Flags for C++ 11 on OS X Mountain Lion

11 Sunday Nov 2012

Posted by craig in Notes

≈ Leave a comment

Tags

c++, c++ 11, os x, xcode

The default in XCode 4.5.2 is for C++ 11 support, however this is not the case for the command line tools. It took some digging, but I finally arrived at the correct command line options for clang++.

It is sufficient to supply -std=c++11 and -stdlib=libc++. It also seems to accept -std=gnu++11.

Note that these options are not recognized by g++ as shipped for Mountain Lion.

Advertisements
  • RSS - Posts
  • RSS - Comments

Categories

  • Code Snippets
  • Data Analysis
  • Data Structures
  • Exercises
  • Math
  • Navel Gazing
  • Notes
  • Software Engineering
  • Tools

Twitter Updates

  • The Charlottesville Fake News Was the Best Persuasion Play of the Past Year by Scott Adams blog.dilbert.com/2018/02/14/cha… via @ScottAdamsSays 2 months ago
Follow @kungfucraig
Advertisements

Blog at WordPress.com.