尽管我可能会尝试,但我只是无法让VSCode找到我在includePath中指定的任何标头并浏览->path。这是我的c_cpp_properties.json文件。当然,VSCode应该能够找到curses.h之后:
{
"configurations": [
{
"name": "MSYS2",
"includePath": [
"C:/msys64/mingw64/include/ncurses/"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"compilerPath": "C:/msys64/mingw64/bin/gcc",
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"C:/msys64/mingw64/include/ncurses/"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 4
}我在路径名中尝试过前向和反斜杠。似乎什么都起不到作用。我应该提到,我使用的是MSYS2 2/MinGW-W64。
发布于 2018-07-12 22:37:28
我在自己默认的'c_cpp_properties.json‘文件中注意到,所有路径字符串都使用双反斜杠。
"C:\\So\\Something\\Like\\This.exe"https://stackoverflow.com/questions/51005902
复制相似问题