且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

LNK1104:无法打开文件"kernel32.lib"

更新时间:2021-09-15 21:42:10

我认为您在这里寻找的选项是-MT而不是-MD.我遇到了同样的问题.您会注意到,使用此选项时,DLL的大小要大得多(包括依赖项)

I think the option you are looking for here is -MT instead of -MD. I ran into the same problem. You will notice that when you use this option, the size of the DLL is much larger (includes dependencies)