Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building issues (glfw) #2010

Closed
elect86 opened this issue Aug 6, 2018 · 2 comments
Closed

Building issues (glfw) #2010

elect86 opened this issue Aug 6, 2018 · 2 comments

Comments

@elect86
Copy link
Contributor

elect86 commented Aug 6, 2018

Hi,

since I had problems after a sync, I delete everything and started from scratch again, but without success.

If I open imgui_examples, re-target and try to run glfw-gl3 example I always get:

1>------ Build started: Project: example_glfw_opengl3, Configuration: Debug Win32 ------
1>imgui_impl_glfw.cpp
1>main.cpp
1>Generating Code...
1>glfw3.lib(context.obj) : warning LNK4217: locally defined symbol _sscanf imported in function _parseVersionString
1>MSVCRTD.lib(vsnprintf.obj) : warning LNK4049: locally defined symbol __vsnprintf imported
1>glfw3.lib(init.obj) : error LNK2019: unresolved external symbol __imp__vsnprintf referenced in function __glfwInputError
1>MSVCRTD.lib(vsnprintf.obj) : error LNK2001: unresolved external symbol __imp__vsnprintf
1>E:\Visual Studio 2017\Projects\imgui\examples\example_glfw_opengl3\Debug\example_glfw_opengl3.exe : fatal error LNK1120: 1 unresolved externals
1>Done building project "example_glfw_opengl3.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

What's wrong?

VS 2017 CE

@elect86
Copy link
Contributor Author

elect86 commented Aug 6, 2018

Apparently switching to x64 build, and manually updating glfw3.lib inside

E:\Visual Studio 2017\Projects\imgui\examples\libs\glfw\lib-vc2010-64

Fixed the issue

@elect86 elect86 closed this as completed Aug 6, 2018
ocornut added a commit that referenced this issue Nov 5, 2018
… in order to link with the precompiled VS2010 GLFW3.lib we provide. (#2010, #2043, #2091)
@ocornut
Copy link
Owner

ocornut commented Nov 5, 2018

@elect86 This should be fixed now. The problem is that linking VS2010 binaries into recent VS applications needs legacy_stdio_definitions.lib, and we provide an old GLFW3.lib binary to ease compiling those examples out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants