且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

VS2008升级到VS2010“无法打开文件'mfc90d.lib'"

更新时间:2023-10-19 18:48:52

可能的原因包括

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.

马丁