I’m working on a game for fun right now using C++ and a variety of libraries. I have all of these stored underC://Libraries
, and vscode is able to recognize them through the use of a CMAKE file, and I was able to write the original code without encountering many errors.
The compiler that I am using is the g++
compiler.
When it comes time to do a trial run however I get the error:
main.h:2:10: fatal error: GLFW/glfw3.h: No such file or directory
2 | #include <GLFW/glfw3.h>
| ^~~~~~~~~~~~~~
compilation terminated.```
I tried reconfiguring the CMAKE file and moving the libraries to the root of the project in a separate folder with .gitignore, and nothing has really been able to solve my issue so far.
New contributor
Vivek Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.