I’ve recently switched to Windows and started using Visual Studio Community. I’m currently learning OpenGL with GLFW and GLEW. I managed to link the libraries without much trouble, and everything works fine initially. However, every time I close and reopen my project, Intellisense stops recognizing the header files of the libraries completely, even though all project properties remain unchanged.
Compiler Output (nothing important after that, just E1696 / cannot open source file errors):
Error (active) E1696 cannot open source file "GL/glew.h"
Error (active) E1696 cannot open source file "GLFW/glfw3.h"
...
I’m not sure if this is a bug in Visual Studio or if I’m missing something in my project setup. Any guidance or suggestions would be greatly appreciated.
Has anyone encountered similar issues or have any tips on how to ensure the project properties are consistently recognized after reopening the project?
Constantin Topcu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
6