Fatal error LNK1104: cannot open file 'gdi32.lib'

后端 未结 7 2162
长情又很酷
长情又很酷 2021-01-01 11:39

Every time I try to run my code I get this error. I\'ve tried everything, installing the SDK, but I still get the same error.

1>------ Build started: Proj         


        
7条回答
  •  旧时难觅i
    2021-01-01 11:46

    If anyone has this problem on Visual Studio 2017, it is an issue with the Windows 10 Creators Update.

    A workaround is to select the "Windows 10 SDK (10.0.15063.0) for Desktop C++ x86 and x64" under the "Desktop development with C++" workload in the Visual Studio Installer.

    https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes#KINativeDesktopWorkload

提交回复
热议问题