I’ve recently taken an interest in OpenGL rendering, but I can’t for the life of me seem to get the GLFW libraries to work. I’ve followed instructions on installing the pre-compiled libraries from videos such as
https://www.youtube.com/watch?v=0WrSGMuU964 and https://www.youtube.com/watch?v=CBNoa3ZxUq4
down to a tee, and spent countless hours scrutinizing over the details and trying to understand the happenings of compilers and linkers, but alas, I couldn’t fix my problem, so here I am seeking help. What am I doing wrong?
I downloaded the 32-bit windows binaries.
I moved the “include” and “lib-mingw” folders into my project’s folder (Console Application).
Under “Project > Build Options > Search Directories > Compiler” I added the “include” directory as a relative path.
Under “Project > Build Options > Search Directories > Linker” I added the “lib-mingw” directory as a relative path.
Under “Project > Build Options > Linker Settings” I added “glfw3”, “gdi32” and “opengl32” to the Link Libraries
Then when I try compiling the project with the sample code from the GLFW documentation, I receive the errors:
cannot find -lglfw3
Id returned 1 exit status
I find this more confusing yet, since there isn’t a “gdi32” nor “opengl32” in the “lib-mingw” folder, and there IS a glfw3 library file in it, yet that is the one it doesn’t manage to find. I’ve tried adding only the glfw3 library file in the lib-mingw folder to the “Link-Libraries” as a non-relative path, but that didn’t work either. Any ideas what I’ve done wrong here?
Thank you greatly in advance.