解决Visual C++ 2008 Feature Pack Release安装失败的方法 —— 在VS2008简体中文版上安装TR1

在VS2008中使用<regex>头文件时遇到错误,提示文件缺失。通过搜索和阅读文档,了解到需要安装Visual C++ 2008 Feature Pack Release以获取TR1库。然而,安装过程中遭遇非英文版VS2008的兼容性问题。最终,通过安装Visual Studio 2008 Service Pack 1解决,成功使用regex功能。
摘要由CSDN通过智能技术生成

2011-02-18 wcdj

 

 

在VS2008中使用#include <regex>,会得到以下错误提示:
fatal error C1083: Cannot open include file: 'regex': No such file or directory
然后google关键字:“Cannot open include file: 'regex': No such file or directory”,可以找到下面这个link:
“Cannot open include file: 'regex'”
可以得到相关解答 为:
[1]
Yes, VC++ 2010 and 2008 SP1 include the TR1 regex library. If you have SP1 installed, but don't have that header, I recommend repairing your Visual Studio installation.
If using a third-party library is an option, I recommend boost's xpressive or regex libraries, the latter of which was the basis for TR1's regex.
[2]
RTM stands for release to manufacturing, which is the originally released version (without service packs). If you installed the service pack you will have a higher version number in Help->About.
[3]
yea, I tried to install the sp1 and the version number increased, and "regex" is in there.
http://www.microsoft.com/downloads/en/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en


然后查看一下本机上安装的VS2008,版本号如下:
Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5 SP1
因此,在RTM版本上并没有service packs,所以才找不到'regex'。
通过上面的回答,可以找到“Microsoft Visual Studio 2008 Service Pack 1 (Installer)   (VS90sp1-KB945140-ENU.exe 536KB) ”,下载安装发现出错,提示这个更新只支持E版的VS2008:
Installation Requirements:
A compatible version of Visual Studio 2008 was not detected on the system. This update is designed for only the Microsoft Visual Studio 2008 (ENU) product family, and is not compatible with any Express edition

VC 2008运行时库指的是以Visual C++ 2008创建的应用程序所需要的动态链接库(DLL)集合。这些运行时库包含了在运行时所需的函数、类和对象,以支持应用程序正常运行。 VC 2008运行时库分为两种版本:Debug版本和Release版本。Debug版本主要用于开发和调试阶段,它会提供更多的调试信息和一些额外的功能,以帮助开发人员定位和修复程序中的错误。Release版本则是用于最终的产品发布,它有更高的性能和较小的文件大小,但没有Debug版本的那些额外功能和信息。 VC 2008运行时库包括了许多不同的库文件,如msvcr90.dll、msvcm90.dll、msvcp90.dll等。它们分别对应不同的功能和用途。其中,msvcr90.dll是最常见的库文件,它包含了标准C运行时函数的实现。msvcm90.dll则是用于支持C++的函数和对象,而msvcp90.dll则是为了支持更多的C++标准库的使用。 使用VC 2008运行时库有助于解决一些常见的问题,如缺少某些系统组件、依赖其他库文件等。在使用VC 2008创建应用程序时,如果没有将运行时库打包到程序中,那么用户在运行应用程序时可能会遇到“缺少DLL文件”的错误提示。 综上所述,VC 2008运行时库是为了支持使用Visual C++ 2008创建的应用程序正常运行所需的动态链接库集合,它包含了不同的库文件,支持不同的功能和用途。使用VC 2008运行时库可以帮助解决一些常见的问题,并确保应用程序在运行时能够正确加载和使用所需的函数和对象。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值