프로젝트에서 clang을 테스트하기로 결정했습니다. CMake 빌드 시스템이 있습니다 그래서, 나는 그런 명령을 실행프로젝트에서 clang 사용
cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
MAKE_C_COMPILER= clang
CMAKE_CXX_COMPILER= clang++
-- The C compiler identification is Clang
-- The CXX compiler identification is Clang
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
그러나 건물이 실패되었습니다
여기처음 make VERBOSE=1
clang++ -DApplicationManager_EXPORTS -g -fPIC -Iinclude -I/usr/include/python2.7 -I/usr/include/ClanLib-2.2 -I/usr/include/Box2D -Wall -g -msse2 -fPIC -o CMakeFiles/ApplicationManager.cpp.o -c ApplicationManager.cpp
라인 및 오류 http://pastebin.com/MQmhbW4D의 목록입니다. 당신은 지금 운이있는 것처럼 보인다, 그래서 http://img689.imageshack.us/img689/5347/clang.png
내가 아는 바와 같이, LLVM은 여전히 C++ 일부 issuses이되기 때문에 C++ 코드, http://clang.llvm.org/cxx_status.html와 그것에서 어떤 일을 기대하지 않습니다. – SIFE