Jump to content
  • Advertisement
Sign in to follow this  
~Helgon

OpenGL Visual Studio 11 GLFW external symbol error

This topic is 2157 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I have follow problem.

 

I wanted to start using OpenGL with GLFW but when I try to run the example I get following errors:

 

Code: http://www.glfw.org/documentation.html

Error: 

1>------ Build started: Project: Test, Configuration: Debug Win32 ------
1>  main.cpp
1>main.obj : error LNK2019: unresolved external symbol _glfwInit referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glfwTerminate referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glfwCreateWindow referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glfwWindowShouldClose referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glfwPollEvents referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glfwMakeContextCurrent referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glfwSwapBuffers referenced in function _main
1>C:\Users\MICHAEL\documents\visual studio 2012\Projects\Test\Debug\Test.exe : fatal error LNK1120: 7 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I've set the 'VC++ Directories include' to my include directory of the downloaded binaries

and the 'Library Directories' to the lib-msvc110 directory which contains glfw3.dll, glfw3.lib and glfw3dll.lib

and I set the 'Linker -> Input' additional dependencies to glfw3.lib and glfw3dll.lib

but I still get this error. 

 

I googled it but I didn't found a solution. Does someone has a clue what I have to do?

 

Regards Helgon

Share this post


Link to post
Share on other sites
Advertisement

Thanks, thanks thanks.

 

Using the 32-bit binaries with target-platform 32-bit  and using 

 

glfw3.lib
opengl32.lib
 
as additional dependencies it works!
 
Great! Thanks

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!