glfw3.lib link errors

matt2115 wrote on Tuesday, December 23, 2014:

Building VS2013/x64/Unicode and getting these link errors

glfw3.lib(init.obj) : error LNK2019: unresolved external symbol __imp_vsnprintf referenced in function _glfwInputError

glfw3.lib(monitor.obj) : error LNK2019: unresolved external symbol __imp_strdup referenced in function _glfwCreateMonitor

I think it has something to do with Unicode. Any ideas?

Using glfw3.lib from glfw-3.0.4.bin.WIN64

Thank you in advance,
Matt

juxtaposeur wrote on Thursday, January 01, 2015:

Matt. I think what might be happening is the library you have is for x64 but you might be linking in the x32 configuration for VS2013.

Go to Build => Configuration Manager. What is the Active Solution Platform? Win32 or something other than x64? If it’s not x64, try creating a new configuration where the Platform setting is set to x64. Make sure you select to copy the settings from your current configuration so you don’t have to set directory locations and dependencies again.

I am using VS2013 Community Edition and had such a problem.