gpt4 book ai didi

c++ - fatal error LNK1104 : cannot open file 'gdi32.lib'

转载 作者:IT老高 更新时间:2023-10-28 12:58:48 26 4
gpt4 key购买 nike

每次我尝试运行我的代码时都会收到此错误。我已经尝试了一切,安装了 SDK,但我仍然遇到同样的错误。

1>------ Build started: Project: ConsoleApplication6, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1104: cannot open file 'gdi32.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

我使用的是 Windows 7 和 Visual Studio 2012。

最佳答案

如果有人在 Visual Studio 2017 上遇到此问题,则这是 Windows 10 Creators Update 的问题。

解决方法是在 Visual Studio 安装程序的“使用 C++ 进行桌面开发”工作负载下选择“Windows 10 SDK (10.0.15063.0) for Desktop C++ x86 and x64”。

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

关于c++ - fatal error LNK1104 : cannot open file 'gdi32.lib' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33599723/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com