如何解决VS中“找不到MSVCR80.dll”的问题
2008-01-01 11:27
681 查看
目前有三种解决方法。
1, 在程序cpp文件里加上下面句子:
#ifdef _DEBUG
#define __LIBRARIES_SUB_VERSION Debug
#else
#define __LIBRARIES_SUB_VERSION
#endif
// Manifest for the CRT
#pragma comment(linker,/manifestdependency:/type= win32 /
name= __LIBRARIES_ASSEMBLY_NAME_PREFIX .
__LIBRARIES_SUB_VERSION CRT /
version= _CRT_ASSEMBLY_VERSION /
processorArchitecture= x86 /)
// Manifest for the MFC
#pragma comment(linker,/manifestdependency:/type= win32 /
name= __LIBRARIES_ASSEMBLY_NAME_PREFIX .
__LIBRARIES_SUB_VERSION MFC /
version= _CRT_ASSEMBLY_VERSION /
processorArchitecture= x86 /)
#pragma comment(linker,/manifestdependency:/type= win32 /
name= __LIBRARIES_ASSEMBLY_NAME_PREFIX .MFCLOC /
version= _CRT_ASSEMBLY_VERSION /
processorArchitecture= x86 /)
可参考:
http://www.codeproject.com/cpp/PrivateAssemblyProjects.asp?msg=2122107
2, 在程序cpp文件里加上下面句子:
#pragma comment(linker, "/"/manifestdependency:type='Win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='X86' publicKeyToken='1fc8b3b9a1e18e3b' language='*'/"")
可参考:
http://jewelry-wolf.spaces.live.com/blog/cns!9041D1290EF347B0!591.entry
3, 在项目属性 C/C++ 的Command Line 里加上
/D _VC80_UPGRADE=0x0710
可以解决debug版本程序运行不了的问题。
4. 删除project目录下的debug子目录。只能暂时解决问题,新建project时还是会出现问题。
*5. Another option is to add the following line in Project -> Properties ->
1, 在程序cpp文件里加上下面句子:
#ifdef _DEBUG
#define __LIBRARIES_SUB_VERSION Debug
#else
#define __LIBRARIES_SUB_VERSION
#endif
// Manifest for the CRT
#pragma comment(linker,/manifestdependency:/type= win32 /
name= __LIBRARIES_ASSEMBLY_NAME_PREFIX .
__LIBRARIES_SUB_VERSION CRT /
version= _CRT_ASSEMBLY_VERSION /
processorArchitecture= x86 /)
// Manifest for the MFC
#pragma comment(linker,/manifestdependency:/type= win32 /
name= __LIBRARIES_ASSEMBLY_NAME_PREFIX .
__LIBRARIES_SUB_VERSION MFC /
version= _CRT_ASSEMBLY_VERSION /
processorArchitecture= x86 /)
#pragma comment(linker,/manifestdependency:/type= win32 /
name= __LIBRARIES_ASSEMBLY_NAME_PREFIX .MFCLOC /
version= _CRT_ASSEMBLY_VERSION /
processorArchitecture= x86 /)
可参考:
http://www.codeproject.com/cpp/PrivateAssemblyProjects.asp?msg=2122107
2, 在程序cpp文件里加上下面句子:
#pragma comment(linker, "/"/manifestdependency:type='Win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='X86' publicKeyToken='1fc8b3b9a1e18e3b' language='*'/"")
可参考:
http://jewelry-wolf.spaces.live.com/blog/cns!9041D1290EF347B0!591.entry
3, 在项目属性 C/C++ 的Command Line 里加上
/D _VC80_UPGRADE=0x0710
可以解决debug版本程序运行不了的问题。
4. 删除project目录下的debug子目录。只能暂时解决问题,新建project时还是会出现问题。
*5. Another option is to add the following line in Project -> Properties ->
[Debug Configuration] -> Configuration Properties -> Linker -> Manifest File -> Additional Manifest Dependencies: type='win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' This will add the appropriate reference to MSVCR80.dll, and will not force you to use static libs. 这种方法比较彻底。
相关文章推荐
- 如何解决VS中“找不到MSVCR80.dll”的问题
- 安装 VS 2015 Update 2 + Windows SDK Tools 1.3.1 + Windows SDK 10586.212 后提示找不到 10586.0 SDK 问题的解决方法
- 解决“error C3861: “pcap_findalldevs_ex”: 找不到标识符”以及“error C2065: “PCAP_SRC_IF_STRING”: 未声明的标识符”问题
- [个人整理]如何解决VS.NET无法调试项目问题?
- 如何解决mysql.sock直接找不到了的问题
- 在VS2013平台下如何快速解决c++代码内存泄漏问题
- 解决VS编译出现Moc'ing文件,系统找不到指定路径问题
- vs静态编译解决找不到msvcp140.dll问题
- 解决VS调试提示“无法启动程序,'...exe'.系统找不到指定文件。”的问题
- 如何解决mathpage.dll或MathType.dll文件找不到问题
- vs2010 office组件dll右键属性找不到”嵌入互操作类型“问题的解决
- 如何解决Mysql "发生系统错误2,找不到指定的文件" 的问题(第一次安装使用)
- VS2013 VC++中如何解决error C4996: 'fopen'问题
- win7系统如何解决文件多而找不到照片或文档的问题
- 如何解决VS.NET无法调试项目问题?
- 如何解决urllib.request找不到问题
- 在Windows如何解决下Cocos2d-x示例代码TestCpp我找不到lib问题库文件
- Mysql第一次使用-如何解决Mysql "发生系统错误2,找不到指定的文件" 的问题(第一次安装使用)
- 如何解决Xcode5上传应用时找不到图标的问题。