Menu

glfw3.lib link errors

Using GLFW
Matt2115
2014-12-23
2015-01-01
  • Matt2115

    Matt2115 - 2014-12-23

    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

     

    Last edit: Matt2115 2014-12-29
  • ronjackson32312

    ronjackson32312 - 2015-01-01

    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.