Dinkumware STL Lib的哪个版本附带Visual Studio 2012? [英] Which version of the Dinkumware STL Lib ships with Visual Studio 2012?
问题描述
在早期版本的Visual Studio中,有一个预定义的宏_CPPLIB_VER,它报告随此版本的VS提供的Dinkumware STL库的版本。截至2012年,我无法找到或使用此宏 - 它是未定义的,我无法在线找到任何有关此事的信息。
是Dinkumware STL Lib不再在VS2012中使用?是否已重命名宏?
Windows 7 x64
Microsoft Visual Studio 2012 Professional
通常 _CPPLIB_VER
的定义可以在名为 yvals.h
在VS安装文件夹下的某处。对于Visual Studio 2010它在 VC \include
。
小心,因为 _CPPLIB_VER
从Visual Studio 2008开始不再是官方预定义的宏。
添加了
_ATL_VER
,_MSC_VER
,_MFC_VER
; 已删除_CPPLIB_VER
;更新__ COUNTER __
,_DEBUG
,_DLL
,_MT
,__ FUNCDNAME __
,__ FUNCSIG __
,__ FUNCTION __
,
__ FILE __
。已清理主题。
此宏是VS 2005的Microsoft特定预定义宏之一。请参阅预定义宏(Visual Studio 2005):
In earlier versions of Visual Studio, there was a predefinied macro "_CPPLIB_VER" which reported the version of the Dinkumware STL Library shipped with this version of VS. As of 2012, I am unable to find or use this macro - it is undefinied and I am unable to find any information on this matter online.
Is the Dinkumware STL Lib no longer used in VS2012? Was the macro renamed?
Windows 7 x64 Microsoft Visual Studio 2012 Professional
Usually the definition of _CPPLIB_VER
can be found in a header file named yvals.h
somewhere under your VS installation folder. For Visual Studio 2010 it's in VC\include
.
Be careful because _CPPLIB_VER
is no longer an official predefined macro since Visual Studio 2008.
The "Change History" section of Predefined Macros (Visual Studio 2008) on MSDN says:
Added Visual Studio 2008 values for
_ATL_VER
,_MSC_VER
,_MFC_VER
; removed_CPPLIB_VER
; updated__COUNTER__
,_DEBUG
,_DLL
,_MT
,__FUNCDNAME__
,__FUNCSIG__
,__FUNCTION__
,__FILE__
. Cleaned up topic.
And the macro was one of the "Microsoft-Specific Predefined Macros" for VS 2005. See Predefined Macros (Visual Studio 2005):
_CPPLIB_VER
Defined if you include any of the C++ Standard Library headers; reports which version of the Dinkumware header files are present.
这篇关于Dinkumware STL Lib的哪个版本附带Visual Studio 2012?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!