Setting Up GLFW on Visual Studio

Hi Arisides,

Welcome to the GLFW forum.

Using the WIn64 download from https://github.com/glfw/glfw/releases/download/3.3/glfw-3.3.bin.WIN32.zip (extracted to a dir in my example dir project) I was able to create a new empty console project in Visual Studio 2019, with a file called main.cpp with the contents of https://www.glfw.org/documentation.html, followed by adding the following settings:

Additional include directories set to the include from the downloaded and extracted glfw.

Add opengl32.lib;glfw3.lib; to the Linker->Input->Additional Dependencies before the rest of the link libraries (do not delete the default ones).

Then set Linker->General->Additional Library Directories to the lib-vc2019 or appropriate folder.

This should get you working so you can check what you did differently in your own project and figure out where things went wrong.

Cheers,

Doug.

1 Like