I recently started following a tutorial for modern openGL but I'm stuck at the very beginning since I cant get to link GLFW. Each Time I try to compile my code, it gives me three errors :
Error 1 error LNK2019: unresolved external symbol _glfwInit referenced in function _main
Error 2 error LNK2019: unresolved external symbol _glfwTerminate referenced in function _main
Error 3 error LNK1120: 2 unresolved externals
What I did : I put the header file in the nclude file of my VS install directory I put the glfw3.dll, glfw3.lib and glfw3dll.lib files in my lib file I linked to glfw3dll.lib and opengl32.lib in the Additional Dependencies section of the options.
Here is my code :
#include <thread>
#include <glfw3.h>
using namespace std;
int main()
{
glfwInit();
this_thread::sleep_for(chrono::seconds(1));
glfwTerminate();
return 0;
}
Any kind of help is greatly appreciated,
mindoo