关于 stdafx.h Link warning:LNK4199 解决

时间:2021-01-07 04:50:48

当提示找不到函数时,有可能是文件未包含这一句:

#include "stdafx.h"

 

具体原因未知

 

引自http://social.microsoft.com/Forums/en-US/vcgeneral/thread/b64e34e8-98ba-4355-85dc-e1614ecc9747

关于 stdafx.h Link warning:LNK4199 解决

Oliver Guenard - Posted on 2008/04/29 22:24:51
关于 stdafx.h Link warning:LNK4199 解决关于 stdafx.h Link warning:LNK4199 解决关于 stdafx.h Link warning:LNK4199 解决关于 stdafx.h Link warning:LNK4199 解决关于 stdafx.h Link warning:LNK4199 解决

I have the same message in same condition.

I finally found the solution, and share this to thanks the numberous time i found a solution on the net.

So,

In the projet's properties | Linker | Input, click on the button on the Delay load DLL (sorry but i have a french version, so it is perhaps an other name). you can see a inheritance of your project. Uncheck the inheritance button. It'll make it.

No more message...

项目 -- 项目属性 -- 链接器 -- 输入 -- 延迟加载的DLL -- 点开把“从父级或项目默认设置继承”的勾去掉。编译 清净了。