#include errors detected in vscode

后端 未结 11 1026
名媛妹妹
名媛妹妹 2020-12-09 01:00

I am using Visual Studio Code in my C++ project. I installed Microsoft C/C++ Extension for VS Code. I got the following error:

#include error

11条回答
  •  攒了一身酷
    2020-12-09 01:37

    The answer is here: How to use C/Cpp extension and add includepath to configurations.

    Click the light bulb and then edit the JSON file which is opened. Choose the right block corresponding to your platform (there are Mac, Linux, Win32 – ms-vscode.cpptools version: 3). Update paths in includePath (matters if you compile with VS Code) or browse.paths (matters if you navigate with VS Code) or both.

    Thanks to @Francesco Borzì, I will append his answer here:

    You have to Left

提交回复
热议问题