knightcrawler25 / GLSL-PathTracer

A toy physically based GPU path tracer (C++/OpenGL/GLSL)
MIT License
1.85k stars 175 forks source link

Link error On Windows 10 platform VS2017 #11

Closed ychding11 closed 5 years ago

ychding11 commented 5 years ago
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
2>glfw3.lib(context.c.obj) : warning LNK4217: locally defined symbol sscanf imported in function _glfwRefreshContextAttribs
2>MSVCRTD.lib(vsnprintf.obj) : warning LNK4049: locally defined symbol _vsnprintf imported
2>glfw3.lib(init.c.obj) : error LNK2019: unresolved external symbol __imp_vsnprintf referenced in function _glfwInputError
2>MSVCRTD.lib(vsnprintf.obj) : error LNK2001: unresolved external symbol __imp_vsnprintf
2>C:\Users\ding\Documents\github\GLSL-PathTracer\bin\PathTracer_d.exe : fatal error LNK1120: 1 unresolved externals
knightcrawler25 commented 5 years ago

Can you try adding legacy_stdio_definitions.lib?

ychding11 commented 5 years ago

It works. thanks!