
Mac OS X 10.8.5에서 최신 버전의 LLVM을 컴파일하려고 하면 libstdc++ 버전에 대해 다음과 같은 오류/경고가 나타납니다.
===
checking whether Clang will select a modern C++ standard library... no
configure: error:
We detected a missing feature in the standard C++ library that was known to be
missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
than 4.7. You will need to update your system and ensure Clang uses the newer
standard library.
===
libstdc++를 업데이트하는 방법에 대한 명확한 정보를 찾을 수 없습니다. ㅏ비슷한 게시물내가 찾은 것은 도움이 되지 않았습니다.
libstdc++를 업데이트하면 다른 많은 문제가 발생하게 됩니까?
관련이 있는 경우 홈브류를 설치했으며 macport를 피하고 싶습니다.
답변1
이 문제를 해결하기 위해 Macport를 탐색할 필요가 없다는 것이 밝혀졌습니다. Mac-OSX 10.8에는 이미 libc++가 설치되어 있으며 enable-libcpp
구성 단계에서 플래그를 사용하여 llvm에 libstdc++ 대신 libc++를 사용하도록 요청할 수 있습니다 .