|
From: Georgy J. <geo...@gm...> - 2007-12-04 22:38:45
|
>
> Didn't you have to fix this piece of code of
boost/config/compiler/visualc.hpp ?
>
> // last known and checked version is 1400 (VC8):
> #if (_MSC_VER > 1400)
> # if defined(BOOST_ASSERT_CONFIG)
> # error "Unknown compiler version - please run the configure tests an=
d
> report the results"
> # else
> # pragma message("Unknown compiler version - please run the configure
> tests and report the results")
> # endif
> #endif
>
> There is another thing I had to change but I don=B4t remember now.
>
if somebody is interested, here is the "patch" for boost.1.34.1 and VS
2008.
Georgy
*msvc.jam *
{
# Even if version is not explicitly specified, try to detect the version
# from the path.
+ if [ MATCH "(Microsoft Visual Studio 9.0)" : $(command) ]
+ {
+ version =3D 9.0 ;
+ }
+else if [ MATCH "(Microsoft Visual Studio 8)" : $(command) ]
-if [ MATCH "(Microsoft Visual Studio 8)" : $(command) ]
{
version =3D 8.0 ;
.ProgramFiles =3D [ path.make [ common.get-program-files-dir ] ] ;
-.known-versions =3D 8.0 8.0express 7.1 7.1toolkit 7.0 6.0 ;
+.known-versions =3D 9.0 9.0express 8.0 8.0express 7.1 7.1toolkit 7.0 6.0 ;
# Version aliases
.version-alias-6 =3D 6.0 ;
.version-alias-6.5 =3D 6.0 ;
.version-alias-7 =3D 7.0 ;
.version-alias-8 =3D 8.0 ;
+.version-alias-9 =3D 9.0 ;
# Name of the registry key that contains Visual C++ installation path
# (relative to "HKEY_LOCAL_MACHINE\SOFTWARE\\Microsoft"
.version-7.1-reg =3D "VisualStudio\\7.1\\Setup\\VC" ;
.version-8.0-reg =3D "VisualStudio\\8.0\\Setup\\VC" ;
.version-8.0express-reg =3D "VCExpress\\8.0\\Setup\\VC" ;
+.version-9.0-reg =3D "VisualStudio\\9.0\\Setup\\VC" ;
+.version-9.0express-reg =3D "VCExpress\\9.0\\Setup\\VC" ;
# Visual C++ Toolkit 2003 do not store its installation path in the
registry.
# The environment variable 'VCToolkitInstallDir' and the default
installation
*auto_link.hpp*
// vc71:
# define BOOST_LIB_TOOLSET "vc71"
-#elif defined(BOOST_MSVC) && (BOOST_MSVC >=3D 1400)
+#elif defined(BOOST_MSVC) && (BOOST_MSVC =3D=3D 1400)
// vc80:
# define BOOST_LIB_TOOLSET "vc80"
+#elif defined(BOOST_MSVC) && (BOOST_MSVC >=3D 1500)
+
+ // vc90:
+# define BOOST_LIB_TOOLSET "vc90"
+
#elif defined(__BORLANDC__)
*visualc.hpp*
#error "Compiler not supported or configured - please reconfigure"
#endif
//
-// last known and checked version is 1400 (VC8):
-#if (_MSC_VER > 1400)
+// last known and checked version is 1500 (VC9):
+#if (_MSC_VER > 1500)
# if defined(BOOST_ASSERT_CONFIG)
# error "Unknown compiler version - please run the configure tests and
report the results"
# else
*named_slot_map.hpp*
|| slot_ =3D=3D other.slot_));
}
-#if BOOST_WORKAROUND(_MSC_VER, <=3D 1400)
+#if BOOST_WORKAROUND(_MSC_VER, <=3D 1500)
void decrement();
void advance(difference_type);
#endif
*named_slot_map.cpp*
typedef slot_container_type::const_iterator const_group_iterator;
-#if BOOST_WORKAROUND(_MSC_VER, <=3D 1400)
+#if BOOST_WORKAROUND(_MSC_VER, <=3D 1500)
void named_slot_map_iterator::decrement() { assert(false); }
void named_slot_map_iterator::advance(difference_type) { assert(false); }
#endif
|