diff options
| author | Dominyk Tiller | 2016-09-14 17:29:07 +0100 |
|---|---|---|
| committer | Dominyk Tiller | 2016-09-14 17:29:07 +0100 |
| commit | 372a2b247073f54ce0cc88eb1628a8f69c770499 (patch) | |
| tree | 390afa6529d05f42d8eebbad912f0bb5ccdbc22d | |
| parent | 06145dd6d0c1b05478855efcdb384ab51a395da1 (diff) | |
| download | brew-372a2b247073f54ce0cc88eb1628a8f69c770499.tar.bz2 | |
C++-Standard-Libraries: wrap to ~80 characters
| -rw-r--r-- | share/doc/homebrew/C++-Standard-Libraries.md | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/share/doc/homebrew/C++-Standard-Libraries.md b/share/doc/homebrew/C++-Standard-Libraries.md index 4912832f8..0bb987def 100644 --- a/share/doc/homebrew/C++-Standard-Libraries.md +++ b/share/doc/homebrew/C++-Standard-Libraries.md @@ -1,13 +1,23 @@ # C++ Standard Libraries There are two C++ standard libraries supported by Apple compilers. -The default for 10.8 and earlier is **libstdc++**, supported by Apple GCC compilers, GNU GCC compilers, and clang. This was marked deprecated with a warning during compile as of Xcode 8. +The default for 10.8 and earlier is **libstdc++**, supported by Apple GCC +compilers, GNU GCC compilers, and clang. This was marked deprecated with a +warning during compile as of Xcode 8. -The default for 10.9 is **libc++**, which is also the default for clang on older platforms when building C++11 code. +The default for 10.9 is **libc++**, which is also the default for clang on older +platforms when building C++11 code. -There are subtle incompatibilities between several of the C++ standard libraries, so Homebrew will refuse to install software if a dependency was built with an incompatible C++ library. It's recommended that you install the dependency tree using a compatible compiler. +There are subtle incompatibilities between several of the C++ standard libraries, +so Homebrew will refuse to install software if a dependency was built with an +incompatible C++ library. It's recommended that you install the dependency tree +using a compatible compiler. -**If you've upgraded to 10.9 from an earlier version** - because the default C++ standard library is now libc++, you may not be able to build software using dependencies that you built on 10.8 or lower. If you're reading this page because you were directed here by a build error, you can most likely fix the issue if you reinstall all the dependencies of the package you're trying to build. +**If you've upgraded to 10.9 from an earlier version** - because the default C++ +standard library is now libc++, you may not be able to build software using +dependencies that you built on 10.8 or lower. If you're reading this page because +you were directed here by a build error, you can most likely fix the issue if +you reinstall all the dependencies of the package you're trying to build. Example install using GCC 4.8: ```brew install DESIRED_FORMULA --cc=gcc-4.8```. Get GCC 4.8 via: ```brew install gcc48``` |
