`
phm788ns
  • 浏览: 15134 次
最近访客 更多访客>>
社区版块
存档分类
最新评论

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

 
阅读更多

解决Visual C++ 2008 Feature Pack Release安装失败的方法 ―― 在VS2008简体中文版上安装TR1
2011年02月18日
  2011-02-18 wcdj 在VS2008中使用#include ,会得到以下错误提示:
  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&disp laylang=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 editions. 
  要删除中文版的再装英文版的比较繁琐,因此继续寻找其他的解决办法。
  遇到的问题,说明当前安装的VS2008没有包含regex,在MSDN ( http://msdn.microsoft.com/en-us/ms348103.aspx )上搜索关键字"regex" ,可以搜到一篇名为""的文档。然后可以得到关键字"TR1 Regular Expressions",然后可以进一步找到一下文档等等。
  "Standard C++ Library TR1 Extensions Reference"
  "TR1 Regular Expressions"
  "Quick Start for C++ TR1 Regular Expressions - CodeProject  "
  在"Standard C++ Library TR1 Extensions Reference "一文中,可以找到以下的提示:
  If you start hitting linker errors with this code (even though the includes appear to be present), ensure you download the Visual C++ 2008 Feature Pack Release to get it.
  This page should really link to it - http://www.microsoft.com/downloads/details.aspx?Fa milyId=D466226B-8DAB-445F-A7B4-448B326C48E7&display lang=en
  通过上面的提示,可以找到"Visual C++ 2008 Feature Pack Release ",根据介绍可知,这个Visual C++ 2008功能包 扩展了VS2008的功能,通过使用这个扩展,MFC程序可以具有更强大的功能。This feature pack also includes an implementation of TR1 . 这就是我们要找的。
  在"Standard C++ Library TR1 Extensions Reference"一文中得知:
  This reference describes the Visual C++ implementation of the proposed extensions of the C++ ISO standard that are included in the draft document, "Technical Report 1 ." The Visual C++ implementation includes support for fixed-size arrays, function objects, hash tables, regular expressions, template metaprogramming, template types for aggregating related objects, and random-number generation.
  在"系统要求"一栏中,说明这个功能包仅支持英文系统版本的VS2008,但是下句又说明,对于非英语版本的也可以使用 :
  Support for systems with non-English versions of Visual Studio 2008 installed will be available in Visual Studio 2008 Service Pack 1.
  然后在MSDN上搜索关键字"Visual Studio 2008 Service Pack 1 ",可以找到以下文档:
  "Microsoft Visual Studio 2008 Service Pack 1 (Installer)   (VS90sp1-KB945140-ENU.exe 536KB) "-- 上文尝试过,这个只能使用于E版的VS2008
  "Microsoft Visual Studio 2008 Service Pack 1 (iso)   (VS2008SP1ENUX1512962.iso 831.3MB) "-- 未尝试
  可以发现,这两个"Visual Studio 2008 Service Pack 1"除了文件大小不同,其余介绍都一样,下载和安装比较费时,但欣慰的是安装成功了。再次查看VS的版本号,发现版本号比安装前的提高了。
  Version 9.0.21022.8 RTM => 9.0.30729.1 sp
  对于上面的测试代码不再提示未找到regex的错误提示。下来的工作是做进一步的测试和使用。
  参考:
  [1] Standard C++ Library TR1 Extensions Reference   (标准C++库TR1的扩展参考)
  http://msdn.microsoft.com/en-us/library/bb982198%2 8v=VS.90%29.aspx
  [2] TR1 Regular Expressions
  http://msdn.microsoft.com/en-us/library/bb982727%2 8v=VS.90%29.aspx
  [3] Cannot open include file: 'regex'
  http://social.msdn.microsoft.com/Forums/en-US/vcge neral/thread/fc2e32b5-e55f-416f-8c74-c018d0f793ab/
  [4] MSDN Library for Visual Studio 2008 SP1 
  http://www.microsoft.com/downloads/en/details.aspx ?FamilyID=7bbe5eda-5062-4ebb-83c7-d3c5ff92a373&Disp layLang=en
  [5] Quick Start for C++ TR1 Regular Expressions
  http://www.codeproject.com/KB/string/TR1Regex.aspx
  [6] Visual C++ 2008 Feature Pack安装失败
  http://zhanyonhu.blog.163.com/blog/static/16186044 20094142334417/
  [7] vc2008中MFC重大变革-Visual C++ 2008 Feature Pack Beta 发布(附图) 
  http://www.cppblog.com/woaidongmao/archive/2009/06 /19/88092.aspx
  [8] Visual C++ 2008 Feature Pack 体验 
  http://www.cnblogs.com/arowana/archive/2008/01/19/ 1045244.html
  附:" Visual C++ 2008 Feature Pack Release"说明
  安装
  Visual C++ 2008 Feature Pack Release    (VC2008FeaturePack.exe 322.9MB)
  Overview
  The Visual C++ 2008 Feature Pack extends the VC++ Libraries shipped with Visual Studio 2008 and is fully covered under Microsoft's standard support policies.
  The VC++ 2008 MFC libraries have been extended to support creation of applications that have:
  * Office Ribbon style interface
  * Office 2007, Office 2003 and Office XP look and feel
  * Modern Visual Studio-style docking toolbars and panes
  * Fully customizable toolbars and menus
  * A rich set of advanced GUI controls
  * Advanced MDI tabs and groups
  * And much more!
  This feature pack also includes an implementation of TR1 . Portions of TR1 are scheduled for adoption in the upcoming C++0x standard as the first major addition to the ISO 2003 standard C++ library. Our implementation includes a number of important features such as:
  * Smart pointers
  * Regular expression parsing
  * New containers (tuple, array, unordered set, etc)
  * Sophisticated random number generators
  * Polymorphic function wrappers
  * Type traits
  * And more!
  Note: This feature pack does not include C99 compatibility or support for special math functions.
  System Requirements
  * Supported Operating Systems:Windows Server 2003;Windows Vista;Windows XP
  * Visual Studio: This Feature Pack is only supported on systems which have the English language (ENU) version of Visual Studio 2008 Standard Edition or above installed.
  o Support for systems with non-English versions of Visual Studio 2008 installed will be available in Visual Studio 2008 Service Pack 1 .
  * Microsoft Windows SDK: If you install the Visual C++ 2008 Feature Pack and then install the Windows SDK for Windows Server 2008 and .NET Framework 3.5, some of the files in the Feature Pack are overwritten and lose the additions made by the Feature Pack.
  Resolution:
  o Please install the Windows SDK for Windows Server 2008 and .NET Framework 3.5 first and then the Feature Pack.
  o If you have already installed the Feature Pack first and then Windows SDK, repairing your VS 2008 installation should solve the problem.
  Instructions
  MSDN online Libraries
  The MSDN online libraries have been updated with new documentation and walkthroughs that support the new MFC and TR1 features included in this release. The documentation provides some great content to get you up and running quickly with the new components. The documentation can be found at:
  * MFC http://msdn2.microsoft.com/en-us/library/bb982354. aspx
  * TR1 http://msdn2.microsoft.com/en-us/library/bb982198. aspx 
  Additional Information
  VC Redist Package
  The VCRedist_x86.exe package has been updated with this refresh to resolve previous installation and deployment blocking issues.
分享到:
评论

相关推荐

    c++标准库扩展 TR1

    std::tr1现在已经广泛应用了,shared_ptr, function, bind, mem_fn, tuple都是很重要的工具。

    Effective C++(中文版).pdf

    中文版的PDF,分享一下 Effective C++是世界顶级C++大师Scott Meyers的成名之作,初版于1991年。在国际上,这本书所引起的反响之大,波及整个计算机技术出版领域,余音至今未绝。几乎在所有C++书籍的推荐名单上,...

    Effective C++ 中文版

     《Effective C++中文版(第3版改善程序与设计的55个具体做法)》不是读完一遍就可以束之高阁的快餐读物,也不是用以解决手边问题的参考手册,而是需要您去反复阅读体会的,C++是真正程序员的语言,背后有着精深的...

    Effective C++中文版第三版(带完整目录)(2-1)

    几乎在所有c++书籍的推荐名单上,本书都会位于前三名。作者高超的技术把握力、独特的视角。诙谐轻松的写作风格、独具匠心的内容组织,都受到极大的推崇和仿效。这种奇特的现象,只能解释为人们对这本书衷心的赞美和...

    C++ TR1 report

    这是C++ TR1的官方report。里面详细的介绍了TR1新引入的一些类和库,非常的实用,讲解也比较详细。如果大家比较感兴趣TR1的话,可以下载《C++标准库扩展权威指南》这本书。

    C++ reference chm 参考手册(包含STL tr1等)

    C++ reference chm 参考手册(包含STL tr1等)

    EditPlus 3.31 Build 860 简体中文版

    关于简体中文版 ========== * 修正:'工具'->'设置目录' 的按钮排列问题。感谢 hdzz [0504] * 修正:汉化了几个以前不能动的单词(比如 Text 和 Default)而不会导致软件BUG [0503] * 修正:当另存为时,在文件名称...

    TR1 的 ros_control硬件接口_C++_代码_相关文件_下载

    TR1 的 ros_control硬件接口_C++_代码_相关文件_下载

    IPD技术评审(TR1-TR6)知识分享

    IPD技术评审(TR1-TR6)知识分享IPD技术评审(TR1-TR6)知识分享IPD技术评审(TR1-TR6)知识分享IPD技术评审(TR1-TR6)知识分享IPD技术评审(TR1-TR6)知识分享

    Effective C++ 中文版第三版(带完整目录).part2(2-2)

    几乎在所有c++书籍的推荐名单上,本书都会位于前三名。作者高超的技术把握力、独特的视角。诙谐轻松的写作风格、独具匠心的内容组织,都受到极大的推崇和仿效。这种奇特的现象,只能解释为人们对这本书衷心的赞美和...

    c++ boost库1.73.0 boost最新版

    在送审的C++标准库TR1中,有十个Boost库成为标准库的候选方案。在更新的TR2中,有更多的Boost库被加入到其中。从某种意义上来讲,Boost库成为具有实践意义的准标准库。 可下载Boost C++ Libraries安装boost库。大...

    effective c++ 3rd英文版

    Topics from the second edition have been extensively revised to reflect modern design considerations, including exceptions, design patterns, and multithreading.Important features of Effective C++ ...

    EditPlus_3.21.677 简体中文版

    EditPlus 3.21.677 中文版 更新内容: 2010-12-18 <功能> * '使用 TR1 正则表达式' 选项 ('首选项'->'常规') * 可定制的用户工具栏图标 * 在 '设置 & 语法' 对话框的 '用户工具组' 选项 * 支持输入窗和剪辑/目录窗...

    基于NA5TR1的无线定位节点的设计

    定位节点采用NA5TR1为无线定位节点的核心器件,该器件内部集成了具有双边两路测距功能的模块和2.45 GHz ISM RF收发器,利用ATmega644v单片机为控制器,完成无线定位节点的整体设计,并给出无线定位节点电路原理图。

    Effective C++(第三版)

     * 崭新的 "TR1" 标准程序库功能应用,以及与既有标准程序库组件的比较。  * 洞察 C++和其他语言(例如Java、C#、C)之间的不同。此举有助于那些来自其他语言阵营的开发人员消化吸收 C++ 式的各种解法。

    B树的C++实现

    用 C++ 实现的一个 B 树类,有注释,但不知道我写得能不能看明白。使用时先要从类 CDataTypeForBtree 派生一个类出来,在派生类中实现数据比较函数 Compare,数据输出函数 Print。然后在堆上创建一个数据类对象,把...

    B树的C++源代码及测试代码

    使用方法: #include <string h> #include <stdio h> #include "DataTypeForBtree h" #include "BTree h" struct tree data { char tid[37]; char tname[63]; ...

    TR1

    发电平台Visual Studio程式码 使用的平面图简单的 服务类型没有 服务网址不适用 模块名称tr1 应用标题旅行要求 命名空间 UI5主题sap_fiori_3 UI5版本最新的 启用遥测真的 tr1 旅行要求 启动生成的应用 此应用...

Global site tag (gtag.js) - Google Analytics