#include errors detected in vscode

后端 未结 11 1031
名媛妹妹
名媛妹妹 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:53

    For Windows:

    1. Please add this directory to your environment variable(Path):

    C:\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin\

    1. For Include errors detected, mention the path of your include folder into

    "includePath": [ "C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/include/" ]

    , as this is the path from where the compiler fetches the library to be included in your program.

提交回复
热议问题