macOS 'wchar.h' File Not Found

前端 未结 7 1412
故里飘歌
故里飘歌 2020-11-28 05:15

Under OS X 10.9.5 using XCode 6.0.1 I am running into the following issue when I try to run make from the terminal:

fatal error: \'wchar.h\' fil         


        
相关标签:
7条回答
  • 2020-11-28 06:01

    xcode-select --install worked for me.

    additionally if you're using visual studio code and your intellisense acts weird -

    1. make a folder called .vscode in your project root.
    2. install vscode extension call C/C++ by microsoft
    3. create the c_cpp_properties.json file and paste the below contents

    project_dir > .vscode > c_cpp_properties.json

    {
        "configurations": [
          {
            "name": "macOS",
            "includePath": ["${workspaceFolder}/**"],
            "defines": [],
            "macFrameworkPath": ["/System/Library/Frameworks", "/Library/Frameworks"],
            "compilerPath": "/usr/bin/clang",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "intelliSenseMode": "${default}"
          }
        ],
        "version": 4
    }
    
    0 讨论(0)
提交回复
热议问题