MSBuild提供链接:致命错误LNK1104:无法打开文件'user32.lib' [英] MSBuild gives LINK : fatal error LNK1104: cannot open file 'user32.lib'
本文介绍了MSBuild提供链接:致命错误LNK1104:无法打开文件'user32.lib'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个项目,如果我使用的是VC ++ 2005,则可以正常运行,然后单击"build",但如果我失败,则会出现以下错误尝试使用msbuild进行构建:
LINK:致命错误LNK1104:无法打开文件'user32.lib'
我查看了buildlog.htm文件,注意到当buildlog失败时,它的显着区别是在命令行中附加了额外的lib文件:
user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
The user32.lib is what MSBuild complains about.
I'm using a vcproj file that was generated with VC++2005IDE.
I'm a real noob so I could use some help.
Thanks.
推荐答案
如果在命令行上使用vcbuild.exe而不是MSBuild进行构建会发生什么?如果您只是在构建VC ++项目,而仅此而已,则使用MSBuild没有任何优势.
What happens if you build using vcbuild.exe on the command line instead of MSBuild? If you're just building a VC++ project and nothing else there is no advantage to using MSBuild.
Neil
这篇关于MSBuild提供链接:致命错误LNK1104:无法打开文件'user32.lib'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文