2017-10-28 9 views
0

저는 기본 컴파일러로 mac 및 clang을 사용합니다. 언젠가 누군가가 실수로 라이브러리 중 하나를 삭제하고 내 환경을 일으키는 추락 ... 내가 ++ 연타를 실행할 때 이제 오류 정보를 많이 내 터미널에 나타납니다 말을했다 :Mac에서 Clang ++ 환경 오류

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstdlib:101:9: error: 

      no member named 'div_t' in the global namespace 
    using ::div_t; 
      ~~^ 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstdlib:102:9: error: 
      no member named 'ldiv_t' in the global namespace 
    using ::ldiv_t; 
      ~~^ 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstdlib:104:9: error: 
      no member named 'lldiv_t' in the global namespace 
    using ::lldiv_t; 
      ~~^ 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstdlib:106:9: error: 
      no member named 'atof' in the global namespace 
    using ::atof; 
      ~~^ 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstdlib:107:9: error: 
      no member named 'atoi' in the global namespace 
    using ::atoi; 
      ~~^ 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstdlib:108:9: error: 
      no member named 'atol' in the global namespace 
    using ::atol; 
      ~~^ 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/`c++/v1/cstdlib:110:9: error: 
      no member named 'atoll' in the global namespace 
    using ::atoll; 

을 그리고 50 오류를 정리해! 내가 묻고 싶은 것은, 시스템을 다시 설치하지 않고 clang 환경을 복구 할 수있는 방법이 있다면? 이 함수가 어디에 있는지 정확히 알지 못합니다 ...

답변

0

응용 프로그램 폴더에서 Xcode.app을 삭제하고 휴지통을 비운 다음 App Store에서 다시 설치해보십시오.

+1

나는 그것을했지만 아직 회복 할 수 없다 ... 너무 초조하다. 어쩌면 내 의존성을 놓친거야 ... – MonkeyChen