The project dir as follows:
-Project
|--lib
|--include
|--GL
|--glew.h
|--PBF_CUDA
|--main.cpp
The c_cpp_properties.json
like this:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceRoot}/**",
"D:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/include/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "D:/Program Files (x86)/mingw-w64/i686-8.1.0-win32-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe",
"cStandard": "c11",
"cppStandard": "c++11",
"intelliSenseMode": "clang-x86"
}
],
"version": 4
}
When running this project, its got error:
[Running] cd "blabla" && g++ main.cpp -o main && "blabla/"main
In file included from main.cpp:4:
Renderer/RenderDevice.h:4:10: fatal error: GL/glew.h: No such file or directory
#include <GL/glew.h>
^~~~~~~~~~~
compilation terminated.
[Done] exited with code=1 in 0.657 seconds
Something wrong is IntelliSense
can find GL/glew.h
, but compiler cannot find it.
How to fix this problem? Thanks!