杨庆荣的博客

http://www.wudimei.com/yangqingrong
ecshop、zencart二次开发、discuz x2插件开发。QQ2903595522
访问博客

qt Error: LNK1104: cannot open file ‘gdi32.lib’的解决办法solved

发布时间 2014-02-22 09:51:29    点击(4938)

Error: LNK1104: cannot open file ‘gdi32.lib’
添加环境变量LIB ,LIBPATH , INCLUDE,把vc/bin放到path中去。
重启qtcreator

参考以下命令行

@set "PATH=D:\Program Files\Microsoft SDKs\Windows\v7.1\Bin;%PATH%"
@set "INCLUDE=D:\Program Files\Microsoft SDKs\Windows\v7.1\Include;%INCLUDE%"
@set "LIB=D:\Program Files\Microsoft SDKs\Windows\v7.1\Lib;%LIB%"
@set "LIBPATH=D:\Program Files\Microsoft Visual Studio 10.0\VC\lib;%LIBPATH%"

评论

Name(名字):*
Email:*
QQ:*
*
(*are required,带*号的要求输入。)


杨庆荣 于 2014-02-22 09:54:31 说:
add system variable LIB ,LIBPATH , INCLUDE, append "path_to_vc/bin" to PATH system variable restart qt creator

个人资料

用户名 yangqingrong
真实姓名