Can't compile 64 bits Visual Studio 2010 projects
我有几个VS 2010项目,不能以64位编译(32位可以正常工作,没有任何问题)。我做了很多事情,例如首先通过IDE,再通过命令行,然后执行Reset Visual Studio Settings。修复,重新安装等,并且无法编译项目。总是告诉我
其中lib文件始终是系统库。示例:
1 2 | fatal error LNK1104: cannot open file 'shlwapi.lib' fatal error LNK1104: cannot open file 'kernel32.lib' |
在我向同事寻求帮助后,我们注意到,即使使用覆盖选项从TFS中获得项目的干净版本,我计算机上的"项目的配置属性">" VC目录"也始终与其他计算机不同。
进行更多搜索后,我们在Reset include / lib路径的最后一篇文章中找到了解决方案,我将对其进行完全转录:
use"del %HOMEPATH%\\AppData\\Local\\Microsoft\\MSBuild\\v4.0\\Microsoft.Cpp.Win32.user.props" is not always the right way.
Better use"del %USERPROFILE%\\AppData\\Local\\Microsoft\\MSBuild\\v4.0\\Microsoft.Cpp.Win32.user.props" where the application data folder is normally placed in.
然后,我查看了
因此,我删除了文件,现在一切都可以在64位上正常编译了!