编译ACE时提示 无法打开文件“mfc120d.lib”

时间:2021-08-30 19:56:44
使用vs编译ACE的时候提示 无法打开文件“mfc120d.lib”  是什么原因?
我的config.h文件内容如下:
#define ACE_HAS_STANDARD_CPP_LIBRARY 1
#define ACE_NO_INLINE
#define ACE_HAS_MFC 1
#define ACE_AS_STATIC_LIBS
#include "config-win32.h"

编译错误如下:
1>  正在生成代码...
1>LINK : fatal error LNK1104: 无法打开文件“mfc120d.lib”
========== 生成:  成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========

5 个解决方案

#1


你那个静态库找不到吧。。看看依赖项路径

#2


项目、属性、链接器、常规、附加库目录:填写附加依赖库所在目录 分号间隔多项
项目、属性、链接器、输入、附加依赖项:填写附加依赖库的名字.lib 空格或分号间隔多项

#3


在你指定的路径下找不到那个库

#4


属性->VC++目录->库目录:$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);

#5


转载该帖http://www.perlcn.com/cbc/cjc/2323.html


网上搜索了一下,是因为MFC MBCS DLL缺少导致的,微软的解释如下(http://msdn.microsoft.com/en-us/library/dn251007.aspx):

MFC libraries (DLLs) for multibyte character encoding (MBCS) are no longer included in Visual Studio, but are available as an add-on that you can download and install on any machine that has Visual Studio Professional, Visual Studio Premium, or Visual Studio Ultimate. (In Visual Studio, MFC must be enabled.) The installation requires about 440 MB of disk space and includes the English (United States) and localized versions of the DLLs.

You need this download in order to build an MFC project that has the Character Set property set to Use Multi-Byte Character Set or Not Set.

只需要安装Multibyte MFC Library for Visual Studio 2013就可以解决了。下载地址:http://www.microsoft.com/zh-CN/download/confirmation.aspx?id=40770

#1


你那个静态库找不到吧。。看看依赖项路径

#2


项目、属性、链接器、常规、附加库目录:填写附加依赖库所在目录 分号间隔多项
项目、属性、链接器、输入、附加依赖项:填写附加依赖库的名字.lib 空格或分号间隔多项

#3


在你指定的路径下找不到那个库

#4


属性->VC++目录->库目录:$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);

#5


转载该帖http://www.perlcn.com/cbc/cjc/2323.html


网上搜索了一下,是因为MFC MBCS DLL缺少导致的,微软的解释如下(http://msdn.microsoft.com/en-us/library/dn251007.aspx):

MFC libraries (DLLs) for multibyte character encoding (MBCS) are no longer included in Visual Studio, but are available as an add-on that you can download and install on any machine that has Visual Studio Professional, Visual Studio Premium, or Visual Studio Ultimate. (In Visual Studio, MFC must be enabled.) The installation requires about 440 MB of disk space and includes the English (United States) and localized versions of the DLLs.

You need this download in order to build an MFC project that has the Character Set property set to Use Multi-Byte Character Set or Not Set.

只需要安装Multibyte MFC Library for Visual Studio 2013就可以解决了。下载地址:http://www.microsoft.com/zh-CN/download/confirmation.aspx?id=40770