I was looking for some libraries that make window handling much easier.
I am glad I stumbled upon glfw, it looks very usefull.
Only trouble is that I don’t get it quite running yet.
I have microsoft visual studio 2012 express and I am using the 32-bit windows pre-compiled binaries. When I compile any example I get the following warnings and errors:
Warning 1 warning LNK4075: ignoring ‘/EDITANDCONTINUE’ due to ‘/OPT:LBR’ specification C:\Users\xxx\Documents\Visual Studio 2012\glfwTest2\glfwTest2\glfwTest2.obj glfwTest2
Warning 2 warning LNK4067: ambiguous entry point; selected ‘mainCRTStartup’ C:\Users\xxx\Documents\Visual Studio 2012\glfwTest2\glfwTest2\LINK glfwTest2
Warning 3 warning LNK4098: defaultlib ‘MSVCRT’ conflicts with use of other libs; use /NODEFAULTLIB:library C:\Users\xxx\Documents\Visual Studio 2012\glfwTest2\glfwTest2\LINK glfwTest2
Error 4 error LNK2019: unresolved external symbol __dtoul3 referenced in function __glfwPlatformSetTime C:\Users\xxx\Documents\Visual Studio 2012\glfwTest2\glfwTest2\glfw3.lib(win32_time.obj) glfwTest2
Error 5 error LNK2019: unresolved external symbol __ultod3 referenced in function __glfwInitTimer C:\Users\xxx\Documents\Visual Studio 2012\glfwTest2\glfwTest2\glfw3.lib(win32_time.obj) glfwTest2
Error 6 error LNK1120: 2 unresolved externals C:\Users\xxx\Documents\Visual Studio 2012\glfwTest2\Debug\glfwTest2.exe glfwTest2
I have searched the internet for some answer, but I couldn’t find any similair error. Do I miss a library or something?
You’re using the libs in folder lib-msvc120 and you want the ones in folder lib-msvc110 as visual studio 2012 is version 11. Indeed, you can see this if you go to project->properties->configuration Properties->general->Platform Toolset, you’ll see Visual Studio 2012 (v110).
I had to register to say thank you. I don’t know why it was so hard, but MS versioning caught me off guard and I spent 2+ hours trying to figure out why everything in the linker looked good but I was getting errors. I am using VS2012 and I needed to link the MSVC110 libraries instead of the MSVC120. Huge facepalm. Thanks!