Hello, all.
I have encountered compile errors on attempt to add Python support to
an existing boost installation.
Configuration:
boost 1.33.1
Intel C++ Compiler 8.1.018 for Windows
Python 2.5
// --------Build script (icc_python.bat): -------------
SET INTEL_BASE_MSVC_TOOLSET=vc-7_1
SET TOOLS=intel-win32
SET INTEL_PATH=c:\Install\Intel\CPP\Compiler80\Ia32
SET INTEL_VERSION=81
SET PYTHON_VERSION= 2.5
SET PYTHON_ROOT=C:\Install\Python25
bjam --prefix=C:\prg\boost --with-python install 1>icc_python.log
2>icc_python.err
//----- end of build script ---------
The following errors occur:
C:\prg\boost_1_33_1\boost/python/converter/pyobject_traits.hpp(33): error:
expression must have a constant value
BOOST_PYTHON_BUILTIN_OBJECT_TRAITS(Type);
^
detected during instantiation of class
"boost::python::converter::pyobject_traits<PyTypeObject>" at line 33
C:\prg\boost_1_33_1\boost/python/converter/pyobject_traits.hpp(34): error:
expression must have a constant value
BOOST_PYTHON_BUILTIN_OBJECT_TRAITS(List);
^
detected during instantiation of class
"boost::python::converter::pyobject_traits<PyListObject>" at line 34
C:\prg\boost_1_33_1\boost/python/converter/pyobject_traits.hpp(35): error:
expression must have a constant value
BOOST_PYTHON_BUILTIN_OBJECT_TRAITS(Int);
^
detected during instantiation of class
"boost::python::converter::pyobject_traits<PyIntObject>" at line 35
..................... and so on ..........
I've made some investigation of the issue.
The error occur in file pyobject_traits.hpp in this code:
# define BOOST_PYTHON_BUILTIN_OBJECT_TRAITS(T) \
template <> struct pyobject_traits