致命错误LNK1104:无法打开文件'gdi32.lib' [英] fatal error LNK1104: cannot open file 'gdi32.lib'

查看:7070
本文介绍了致命错误LNK1104:无法打开文件'gdi32.lib'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我尝试运行我的代码,我得到这个错误我试过每一个想法安装SDK ..但仍然是相同的错误。

  1> ------ Build started:Project:ConsoleApplication6,配置:Debug Win32 ------ 
1> LINK:致命错误LNK1104:无法打开文件'gdi32.lib'
========== Build:0成功,1失败,0最新,0跳过==========

解决方案

所以我知道你没有定义你的库路径。



转到项目 - >属性



在链接器选项卡上,选择其他库目录上的常规选择gdi32.lib的路径





然后转到输入选项卡(在常规选项卡下面)
双击或选择编辑以添加gdi32.lib





最后添加您的gdi32.lib



顺便说一句,在visual studio 2013的最终版本中,默认它有gdi32.lib



希望它解决你的问题


Every time I try to run my code I get this ERROR I tried every think installing the SDK .. but still the same ERROR.

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 ==========

I'm using Windows 7 and VS2012.

解决方案

So what I understand you haven't defined the path of your library.

Go to Project --> Properties

On "Linker" Tab select "General" on "Additional Library Directories" select the path of gdi32.lib

Then Go to Input tab ( Below on General tab ) Double Click or select edit to add gdi32.lib

Finally Add your "gdi32.lib" then click ok.

By the way, in visual studio 2013 ultimate edition, by default it has gdi32.lib

Hope it solves your problem

这篇关于致命错误LNK1104:无法打开文件'gdi32.lib'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆