I am compiling a sample code provided on the GLFW bookstore website as follows: g++ main.cpp -o main.exe glfw3dll.a
I am compiling a sample code provided on the GLFW bookstore website as follows: g++ main.cpp -o main.exe glfw3dll.a
You can not link using the -l
flag because the library name should be libglfw3dll.a
.
As I mentioned in one of my old posts it is mandatory to have lib
in the name.