Getting the VS project to build can be tricky, especially if you built the 64bit version of GLEW by accident. Anyways, this uses binaries and VS 2015. http://www.learnopengl.com/#!Getting-started/Hello-Window
- Make a new folder, OpenGL
- Download GLEW, binaries, extract to your new OpenGL folder http://glew.sourceforge.net/
- Download GLFW, 32 bit binaries, extract to your new OpenGL folder http://www.glfw.org/download.html
- Start a new empty C++ project in VS 2015
- Right click on your project, then "properties - C/C++ - General"
- Select "Additional Include Directories"
- In the following steps, replace [your path] with the path to your newly created OpenGL folder
- Now lets get VS to find the header files that you just downloaded to your new OpenGL folder...
- Make an entry for [your path]\OpenGL\glew-2.0.0\include
- Make an entry for [your path]\OpenGL\glfw-3.2.bin.WIN32\include
- Now lets setup the linked.... "linker - general - Additional Library Directories"
- Make an entry for [your path]\OpenGL\glew-2.0.0\lib\Release\Win32
- Make an entry for [your path]\OpenGL\glfw-3.2.bin.WIN32\lib-vc2015
- Now lets link in the actuall lib files.... "Linker - Input - Additional Dependencies"
- Add each of these on their own line opengl32.lib, glfw3.lib, glew32s.lib
- Copy the full code as is from the Hello Window example on learnopengl.com
- Build Soltuion
- F5 (to run)
Thank you so much man! This worked perfectly!