GLFW is a library for creating windows with OpenGL.
I tried to use it in a Windows console program and had difficulty figuring out things like what #includes and
libraies to use. I finally got it working and the following is what worked for
me. I am assuming familiarity with Visual Studio projects and settings.
I downloaded GLFW from GLFW and
GLEW from
The OpenGL Extension Wrangler Library.
Then I created a Visual Studio console project. I am using the DLL
version of GLEW.
I have the following for the #includes:
#define GLFW_DLL
#include <GL/glew.h>
#include <GLFW/glfw3.h>
For the "Additional Include Directories" I provided each of the two "include"
directories in the directories I downloaded GLFW and GLEW to.
For the "Additional Library Directories" I provided each of the two "lib"
directories in the directories I downloaded GLFW and GLEW to.
For "Additional Dependencies" I provided:
- opengl32.lib
- GLFW3dll.lib
- glew32.lib