error cannot open file 'kernel32.lib'

前端 未结 7 1910
渐次进展
渐次进展 2020-12-20 16:49

I have installed VS2013 and VS2015 on Windows 7.

I have an existing C++ Dll project that was building fine but now all of a sudden it wont build using VS2015 and giv

7条回答
  •  我在风中等你
    2020-12-20 17:18

    I had this similar problem today with Visual Studio 2017. My cause turned out to be a bad environment setting in NETFXSDKDir, specifically:

    NETFXSDKDir=C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1
    

    It needed to have a value of:

    C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x86
    

    I have a more detailed response here:

    fatal error LNK1104: cannot open file 'kernel32.lib'

提交回复
热议问题