memcmp linker error Visual Studio 2015

ぃ、小莉子 提交于 2019-12-02 00:08:37

Explicitly add vcruntime.lib or other appropriate version of CRT Library to linker parameters (additional dependencies).

When you use memcmp explicitly it is probably handled as intrinsic function and is compiled as inline function.

howard hsien

Try to add vcruntime.lib and ucrt.lib to your additional dependencies. ===> properties->Linker->Input->Additional Dependencies

Sample path of 'vcruntime.lib': "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\vcruntime.lib"

Sample path of 'ucrt.lib' : "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\ucrt\x86\ucrt.lib"

My environment: VS2017 (v141)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!