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

后端 未结 7 2168
长情又很酷
长情又很酷 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条回答
  •  暖寄归人
    2021-01-01 11:47

    In Visual Studio 2017 (Community edition) I solved this by switching the Windows SDK version in the project properties from 10.0.10586.0 to 10.0.16299.0 (which is the version I've installed on my machine).

    Here is how:

    1. In Visual Studio, go to project properties:

    1. Choose an installed SDK version:

    Reference: the developer community for VS

提交回复
热议问题