VS2008升级到VS2010“无法打开文件'mfc90d.lib'" [英] VS2008 upgrade to VS2010 "cannot open file 'mfc90d.lib'"

查看:63
本文介绍了VS2008升级到VS2010“无法打开文件'mfc90d.lib'"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 Visual C++ 2008 项目升级到 Visual C++ 2010 项目.升级完成并强制升级后,出现此错误:致命错误 LNK1104:无法打开文件 'mfc90d.lib'

I am trying to upgrade a Visual C++ 2008 project to a Visual C++ 2010 project. when the upgrade is finished and I compelled it, I got this error: fatal error LNK1104: cannot open file 'mfc90d.lib'

我认为它应该引用mfc100d.lib",我尝试了很多方法来修复它但都失败了.

I think it should reference to "mfc100d.lib", I tried many ways to fix it but failed.

有人遇到同样的问题吗?

does anyone meet the same problem?

推荐答案

可能的原因包括

a) 您没有重建所有源文件 - 尝试删除所有输出 obj 和 lib 以确保b) 您正在链接使用 VC9 构建的 3rd 方静态库 - 您将需要 VC10 版本c) 您的标头路径指向 VC9 标头(检查您的解决方案的路径选项)d) 由于某些其他原因,您的项目包含对 mfc90d 的明确引用.

a) You are not rebuilding all source files - try deleting all output obj and lib to be sure b) You are linking a 3rd party static lib that was built with VC9 - you will need the VC10 version c) Your header paths are pointing at VC9 headers (check your solution's path options) d) Your project includes an explicit reference to mfc90d for some other reason.

下一步诊断步骤:在链接器上设置/verbose 选项,并准确找出 mfc90d.lib 中拖动的 obj.

Next diagnosis step: set the /verbose option on the linker and work out exactly which obj is dragging in mfc90d.lib.

马丁

这篇关于VS2008升级到VS2010“无法打开文件'mfc90d.lib'"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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