Changes between Version 19 and Version 20 of LibcxxOnOlderSystems
- Timestamp:
- Oct 26, 2015, 3:17:34 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LibcxxOnOlderSystems
v19 v20 1 1 = Using libc++ on older system = 2 2 3 More and more C++ software is being written using the C++11 standard. The default C++ runtime on OS X 10.9 and later is libc++ which supports C++11 but on OS X 10.8 and earlier the default C++ runtime is a version of libstdc++ based on GCC 4.2.1 which does not support C++11. If you wish to build C++11-using software on 10.8 or earlier, you can switch MacPorts to use libc++ instead of libstdc++, but this must be done for MacPorts as a whole; it can't be done for individual ports. 3 More and more C++ software is being written using the C++11 standard. 4 If you have been referred to this page, you are trying to build software that uses C++11 on OS X 10.8 or earlier. 5 The default C++ runtime on OS X 10.8 and earlier is a version of libstdc++ based on GCC 4.2.1 which does not support C++11. 6 The default C++ runtime on OS X 10.9 and later is libc++ which does support C++11. 4 7 5 At this time the MacPorts project does not build binary packages for libc++ on systems older than 10.9, so if you make this change, MacPorts will be building all ports from source. 8 The recommended solution, if your computer supports it, is to upgrade to OS X 10.9 or later. If you do this, you can ignore the rest of this article, and should instead see the [wiki:Migration migration instructions]. 9 10 Alternately, you can switch MacPorts on OS X 10.8 or earlier to use libc++ instead of libstdc++. 11 This must be done for MacPorts as a whole; it can't be done for individual ports. 12 13 At this time the MacPorts project does not build binary packages for libc++ on OS X 10.8 or earlier, so if you make this change, MacPorts will be building all ports from source. 6 14 7 15 If you use MacPorts C++-using ports as dependencies for C++-using software that you compile outside of MacPorts, you must compile that software using libc++ as well.