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

后端 未结 7 2095
长情又很酷
长情又很酷 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:52

    I'm on Windows 8.1 Visual Studio 2017 Professional, and I got it to work after switching the project properties Windows SDK version to 8.1, build, then switch it back to 10.0.16299.0.

    I was trying to compile the CUDA sample project.

    It worked, don't ask me why. Maybe it has something to do with me having the Visual Studio Community 2017 and then uninstalling it to install the professional.

提交回复
热议问题