I am using VC ++ 2010 to work with some OpenGL. However, it becomes a pain. I keep getting error codes again and again.
Here is the code I'm working with:
// Include standard headers #include <stdio.h> #include <stdlib.h> // Include GLEW #include <GL/glew.h> // Include GLFW
Here are the errors I get:
Error 52 error LNK1120: 10 unresolved externals C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\Debug\OpenGL Fun.exe OpenGL Fun Error 42 error LNK2001: unresolved external symbol __imp__glClear@4 C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\GLFW.lib(win32_window.obj) OpenGL Fun Error 39 error LNK2001: unresolved external symbol __imp__glClearColor@16 C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\GLFW.lib(win32_window.obj) OpenGL Fun Error 50 error LNK2001: unresolved external symbol __imp__glGetIntegerv@8 C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\GLFW.lib(glext.obj) OpenGL Fun Error 45 error LNK2001: unresolved external symbol __imp__wglGetProcAddress@4 C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\GLFW.lib(win32_glext.obj) OpenGL Fun Error 41 error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function _glfwOpenWindow C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\GLFW.lib(window.obj) OpenGL Fun Error 38 error LNK2019: unresolved external symbol __imp__glClearColor@16 referenced in function _main C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\Main.obj OpenGL Fun Error 40 error LNK2019: unresolved external symbol __imp__glewInit@0 referenced in function _main C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\Main.obj OpenGL Fun Error 48 error LNK2019: unresolved external symbol __imp__glGetFloatv@8 referenced in function __glfwPlatformSetWindowSize C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\GLFW.lib(win32_window.obj) OpenGL Fun Error 49 error LNK2019: unresolved external symbol __imp__glGetIntegerv@8 referenced in function __glfwPlatformSetWindowSize C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\GLFW.lib(win32_window.obj) OpenGL Fun Error 51 error LNK2019: unresolved external symbol __imp__glGetString@4 referenced in function __glfwParseGLVersion C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\GLFW.lib(glext.obj) OpenGL Fun Error 43 error LNK2019: unresolved external symbol __imp__wglCreateContext@4 referenced in function _createContext C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\GLFW.lib(win32_window.obj) OpenGL Fun Error 47 error LNK2019: unresolved external symbol __imp__wglDeleteContext@4 referenced in function _destroyWindow C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\GLFW.lib(win32_window.obj) OpenGL Fun Error 44 error LNK2019: unresolved external symbol __imp__wglGetProcAddress@4 referenced in function _initWGLExtensions C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\GLFW.lib(win32_window.obj) OpenGL Fun Error 46 error LNK2019: unresolved external symbol __imp__wglMakeCurrent@8 referenced in function _createWindow C:\Users\Chefomsky\documents\visual studio 2010\Projects\OpenGL Fun\OpenGL Fun\GLFW.lib(win32_window.obj) OpenGL Fun
source share