on-internet
← Community

I have specified my include path in VS Code but my include statement still doesn't recognize the file. How do I fix this?

Stack Overflow ·

I'm trying to use OpenGL in C++ using VS Code on Windows 11. I'm currently trying to build a test file, but it won't let me, saying that the glfw3.h file in my include statement cannot be found. However, it can be seen in my log diagnostics and Explorer that my include path points straight to the folder where this file is stored. How do I fix this? The error code I received was: * Executing task: C/C++: cl.exe build active file Starting build... cmd /c chcp 65001>nul && cl.exe /Zi /EHsc /nologo /FeC:\Creativity\Projects\Graphics\MyFirstOpenGL.exe C:\Creativity\Projects\Graphics\MyFirstOpenGL.c

Comments

Sign in or sign up to comment and upvote.

No comments yet.