Error: “no member named 'uint8_t' in the global namespace” on MacOS

后端 未结 1 759
陌清茗
陌清茗 2021-01-26 06:52
Chriss-MacBook-Pro-2:build louisduplessis$ cmake .. && make
In file included from /Library/Developer/CommandLineTools/us         


        
相关标签:
1条回答
  • 2021-01-26 07:20

    I see the same error in npm install hummus or when I try clang++ test.cpp for

          #include <cstdint>
    
          int main(int argc, char **argv) {
             return 0;
          } 
    

    To compile, add the Mac SDK to the include paths:

    clang++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk test.cpp

    0 讨论(0)
提交回复
热议问题