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

后端 未结 13 2267
既然无缘
既然无缘 2020-12-05 10:07

I\'ve been getting this error ever since I installed the .NET Framework SDK for 64-bit programming on my Visual C++ 2010 Express compiler. I can\'t compile even a simple pro

13条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-05 10:30

    I just met and solved this problem by myself. My problem is a little different. I'm using visual studio on Windows 10. When I create the project, the Target Platform Version was automatically set to 10.0.15063.0. But there is no kernel32.lib for this version of SDK, neither are other necessary header files and lib files. So I modified the Target Platform Version to 8.1. And it worked.

    Environment:

    • Windows 10
    • Visual Studio 2015
    • Visual C++

    Solution:

    1. Open the project's Property Page;
    2. Navigate to General page;
    3. Modify Target Platform Version to the desired target platform (e.g. 8.1).

提交回复
热议问题