I have followed these tutorials to learn OpenGL: http://www.opengl-tutorial.org/
In the tutorials we learn how to compile the exercises using cmake, but we never learn how to set it up ourselves. Now I want to start a project from scratch, after trying multiple times I still fail.
I make sure I have an external folder with the following files: GLEW_190.lib, glfw3.lib. And the following include directories: glew-1.9.0, glfw-3.0.3, glm-0.9.4.0
This should be enough as I was able to minimize the project from cmake to this structure, and it compiles completely standalone.
The problem lies in the visual studio project itself. I include all the correct include folders and setup the correct additional libs. The project compiles but doesn't link. I get the following error:
shader.obj : error LNK2001: unresolved external symbol ___glewDeleteShader
About 10 other times with different symbols. My additional libs:
glu32.lib
opengl32.lib
external\glfw3.lib
external\GLEW_190.lib
This should be correct although it doesn't want to work. I have a project that uses OpenGL on Github. I basically had to strip down the big project into a very simple one and added my code to that. I don't want to be doing all that work each time.
Github project for reference: https://github.com/DiedeApers/Chip8Emulator