Visual studio code Visual Studio代码没有';I don’我似乎不尊重他 我有C++项目,使用GLM——一个只模拟GLSL的头文件库。我试图让Visual Studio代码按照c/c++扩展设置的指示,通过编辑c_cpp_properties.json文件来搜索include文件。以下是该文件的内容: { "configurations": [ { "name": "Win32", "includePath": [ "${default}", "C:/Users/esmith-rowland/sources/glm" ], "defines": [ "_DEBUG", "UNICODE", "_UNICODE" ], "windowsSdkVersion": "10.0.19041.0", "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe", "cStandard": "c17", "cppStandard": "c++17", "intelliSenseMode": "windows-msvc-x64", "configurationProvider": "ms-vscode.cmake-tools" } ], "version": 4 }

Visual studio code Visual Studio代码没有';I don’我似乎不尊重他 我有C++项目,使用GLM——一个只模拟GLSL的头文件库。我试图让Visual Studio代码按照c/c++扩展设置的指示,通过编辑c_cpp_properties.json文件来搜索include文件。以下是该文件的内容: { "configurations": [ { "name": "Win32", "includePath": [ "${default}", "C:/Users/esmith-rowland/sources/glm" ], "defines": [ "_DEBUG", "UNICODE", "_UNICODE" ], "windowsSdkVersion": "10.0.19041.0", "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe", "cStandard": "c17", "cppStandard": "c++17", "intelliSenseMode": "windows-msvc-x64", "configurationProvider": "ms-vscode.cmake-tools" } ], "version": 4 },visual-studio-code,visual-c++,Visual Studio Code,Visual C++,尽管如此,我还是有点扭动: #ifdef __cplusplus #include <glm/glm.hpp> using namespace glm; 和生成窗口中的消息,如: 无法打开包含文件:“glm/glm.hpp”:没有这样的文件或目录[C:\Users\esmith rowland\vipre core\build\utd\plot\utd\U plot\U reflection\U coefficient.vcxproj] 我已验证所提供的目录下是否存在glm/glm

尽管如此,我还是有点扭动:

#ifdef __cplusplus
#include <glm/glm.hpp>
using namespace glm;
和生成窗口中的消息,如: 无法打开包含文件:“glm/glm.hpp”:没有这样的文件或目录[C:\Users\esmith rowland\vipre core\build\utd\plot\utd\U plot\U reflection\U coefficient.vcxproj]

我已验证所提供的目录下是否存在glm/glm.hpp。 我错过了什么

Cannot open include file: 'glm/glm.hpp': No such file or directory [C:\Users\esmith-rowland\vipre-core\build\utd\plot\utd_plot_reflection_coefficient.vcxproj]