错误LNK1104:无法打开文件'mfc90.lib' [英] error LNK1104: cannot open file 'mfc90.lib'

查看:519
本文介绍了错误LNK1104:无法打开文件'mfc90.lib'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2012 Professional,并且我的项目引用了用VS2008(v90)构建的静态库.当我使用VS2012(v110)进行构建时,

I'm working with Visual Studio 2012 Professional, and my project reference static library built with VS2008(v90). When I build with VS2012(v110),

error LNK1104: cannot open file 'mfc90.lib'

发生错误.
更改平台工具集是解决此问题的唯一方法吗?我认为这不是解决方案,因为我应该针对.NET Framework 4.5. (我知道我不能将.NET Framework 4.0与v90一起使用.如果不正确,请纠正我)
请让我知道如何在VS2012项目中使用VS2008内置的库.
提前致谢!

ps.如果更改平台工具集是解决问题的唯一方法,那么如何引用使用各种Visual Studio编译器构建的多个库?(例如,使用vs2008,vs2010和vs2012构建的库)

error occurs.
Is it the only way to fix this problem to change platform toolsets? I think it is not a solution to me since I should target .NET Framework 4.5. (I know I cannot use .NET Framework 4.0 with v90. If it is wrong, correct me)
Please let me know how to use library built with VS2008 in VS2012 project.
Thanks in advance!

ps. If changing platform toolsets is the only way to solve the problem, how can reference multiple libraries built with various visual studio compiler?(for example, built with vs2008, vs2010, and vs2012)

我正在为第3方库(本机C ++)编写一个包装程序,以在.NET Framework上运行.问题是我应该使用VS2012构建,但是使用VS2008构建的库需要mfc90.lib(VS2012中未包含)

I'm writing a wrapper program for 3rd party library(Native C++) to run on .NET Framework. The problem is I should build with VS2012, but the library built with VS2008 and it needs mfc90.lib (which is not included in VS2012)

推荐答案

通过链接到mfc110.lib而不是mfc90.lib,我能够使我的项目在vs2012中构建(从vs2008转换)

I was able to get my projects to build in vs2012 (converting from vs2008) by linkinking to mfc110.lib instead of mfc90.lib

这篇关于错误LNK1104:无法打开文件'mfc90.lib'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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