I am new to C++ development and I am trying to learn how to link libraries using g++ compiler. For example I am trying to link GLFW library into my project. I get this error:
main.cpp:1:24: fatal error: GLFW/glfw3.h: No such file or directory
#include <GLFW/glfw3.h>
compilation terminated.
My project tree looks like this:
├── GLFW
│ └── glfw3.h
├── lib
│ ├── glfw3.dll
│ └── glfw3.lib
└── main.cpp
I want to be able to build my projects from terminal without using Visual Studio or an IDE in general. Furthermore, are both static and shared libraries necessary?. I am using Windows at the moment but Linux answers are acceptable too.