【问题标题】:OpenGL symbols highlighting error in visual studio code for MacMac 的 Visual Studio 代码中的 OpenGL 符号突出显示错误
【发布时间】:2017-05-22 14:16:42
【问题描述】:

当我在 Mac 的 vs code 中编写 c++ 代码时,编辑器一直显示 OpenGL 符号的红色下划线警告。例如:

#include <OpenGL/gl.h>
...
glDepthMask(GL_TRUE);

同时,我不能对这些 OpenGL 文件和函数使用“转到定义”。我的代码是正确的,可以编译成功。

我尝试将“/System/Library/Frameworks”添加到文件“.vscode/c_cpp_properties.json”中的“includePath”插槽,但它不起作用。

无论如何要做到这一点?

【问题讨论】:

    标签: c++ macos opengl visual-studio-code


    【解决方案1】:

    请查看以下链接以查看相关问题: https://github.com/Microsoft/vscode-cpptools/issues/743

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-01
      • 1970-01-01
      • 2018-03-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多