# Link Error with GLFW

**URL:** <https://discourse.glfw.org/t/link-error-with-glfw/382>\
**Category:** support\
**Created:** [July 13, 2006, 6:28pm UTC](https://discourse.glfw.org/t/link-error-with-glfw/382 "2006-07-13T18:28:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 13, 2006, 6:28pm UTC](https://discourse.glfw.org/t/link-error-with-glfw/382/1 "2006-07-13T18:28:08Z")

</div>

**nobody** wrote on [Thursday, July 13, 2006](https://sourceforge.net/p/glfw/discussion/247562/thread/a8aa51c0/#3a89):

First: I’m sorry for my bad english. I’m brazilian and don’t speak very well.

I’m trying to compile a project with glfw in Visual Studio Expreess 2005 and I have some link errors:

"1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glEnd@0 referenced in function "struct Coord \_\_cdecl DrawTile(unsigned int,int,int,int)" (?DrawTile@@YA?AUCoord@@IHHH@Z)  
1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glVertex2d@16 referenced in function "struct Coord \_\_cdecl DrawTile(unsigned int,int,int,int)" (?DrawTile@@YA?AUCoord@@IHHH@Z)  
1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glTexCoord2f@8 referenced in function "struct Coord \_\_cdecl DrawTile(unsigned int,int,int,int)" (?DrawTile@@YA?AUCoord@@IHHH@Z)  
1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glBegin@4 referenced in function "struct Coord \_\_cdecl DrawTile(unsigned int,int,int,int)" (?DrawTile@@YA?AUCoord@@IHHH@Z)  
1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glColor3f@12 referenced in function "struct Coord \_\_cdecl DrawTile(unsigned int,int,int,int)" (?DrawTile@@YA?AUCoord@@IHHH@Z)  
1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glBindTexture@8 referenced in function "struct Coord \_\_cdecl DrawTile(unsigned int,int,int,int)" (?DrawTile@@YA?AUCoord@@IHHH@Z)  
1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glClear@4 referenced in function "struct Coord \_\_cdecl DrawTile(unsigned int,int,int,int)" (?DrawTile@@YA?AUCoord@@IHHH@Z)  
1\>glfw.lib(win32\_window.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_glClear@4  
1\>main.obj : error LNK2019: unresolved external symbol \_gluOrtho2D@32 referenced in function \_main  
1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glBlendFunc@8 referenced in function \_main  
1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glPixelStorei@8 referenced in function \_main  
1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glEnable@4 referenced in function \_main  
1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glClearColor@16 referenced in function \_main  
1\>glfw.lib(win32\_window.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_glClearColor@16  
1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glTexEnvi@12 referenced in function \_main  
1\>main.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glMatrixMode@4 referenced in function \_main  
1\>glfw.lib(glext.obj) : error LNK2019: unresolved external symbol \_\_imp\_\_glGetString@4 referenced in function \_glfwExtensionSupported  
1\>glfw.lib(win32\_window.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_glGetString@4  
1\>glfw.lib(win32\_window.obj) : error LNK2019: unresolved external symbol \_\_imp\_\_wglGetProcAddress@4 referenced in function \_\_glfwInitWGLExtensions  
1\>glfw.lib(win32\_glext.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_wglGetProcAddress@4  
1\>glfw.lib(win32\_window.obj) : error LNK2019: unresolved external symbol \_\_imp\_\_wglDeleteContext@4 referenced in function \_\_glfwPlatformCloseWindow  
1\>glfw.lib(win32\_window.obj) : error LNK2019: unresolved external symbol \_\_imp\_\_wglMakeCurrent@8 referenced in function \_\_glfwPlatformCloseWindow  
1\>glfw.lib(win32\_window.obj) : error LNK2019: unresolved external symbol \_\_imp\_\_glGetFloatv@8 referenced in function \_\_glfwPlatformSetWindowSize  
1\>glfw.lib(win32\_window.obj) : error LNK2019: unresolved external symbol \_\_imp\_\_glGetIntegerv@8 referenced in function \_\_glfwPlatformSetWindowSize  
1\>glfw.lib(win32\_window.obj) : error LNK2019: unresolved external symbol \_\_imp\_\_wglCreateContext@4 referenced in function \_\_glfwPlatformOpenWindow"

Big list, isn’t!?

Someone can help me?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 13, 2006, 8:07pm UTC](https://discourse.glfw.org/t/link-error-with-glfw/382/2 "2006-07-13T20:07:03Z")

</div>

**nobody** wrote on [Thursday, July 13, 2006](https://sourceforge.net/p/glfw/discussion/247562/thread/a8aa51c0/#3a89/3b43):

It looks like you aren’t linking with the OpenGL and GLFW libraries. If that’s the case, add opengl32.lib and glfw.lib to the Input section of the link settings in your project, and make sure Visual Studio knows where to find the GLFW library.
