Visual Studio 2017 GLFW problem


Im currently working on some project in Visual Studio 2017 with OpenGL, GLEW, GLFW.
I setup everything and link libraries and dlls but got some errors:
‘Cannot resolve symbol _imp_calloc’
‘Cannot resolve symbol __imp__strstr in function__glfwStringInExtensionString’

Thank You for help.


This sounds like you are using static library of glfw compiled with different settings (like static vs dynamic C++ runtime).

Check that your C++ runtime settings (/MT vs /MD) for your project matches the one you used when glfw was compiled.

Or link do dynamic glfw library. Then it won’t matter if your project uses different C/C++ runtime library.