[C++-sig] boost::python (boost-1_32) and gcc 4.0 (compiler error)
Lothar Werzinger
lothar at xcerla.com
Wed Mar 23 20:26:40 CET 2005
Hi,
boost::python does not compile with gcc 4.0 (4.0-20050213).
Has anyone successfully used boost::python and gcc 4.0? Are there patches to
make it work?
The error given is:
/opt2/boost/include/boost-1_32/boost/mpl/aux_/integral_wrapper.hpp:72: error:
template argument 2 is invalid
/opt2/boost/include/boost-1_32/boost/mpl/aux_/integral_wrapper.hpp:73: error:
template argument 2 is invalid
Here's the complete compiler output:
/opt2/GNU/bin/g++-4.0-20050213 -O0 -g -D_REENTRANT -DACE_HAS_AIO_CALLS
-DACE_USE_RCSID=0 -DACE_HAS_EXCEPTIONS -DOTL_STL -DOTL_ORA10G
-DOTL_ORA_TIMESTAMP -DOTL_STREAM_NO_PRIVATE_BOOL_OPERATORS
-DOTL_STREAM_NO_PRIVATE_UNSIGNED_LONG_OPERATORS -W -Wall -Wpointer-arith
-Wno-uninitialized -Woverloaded-virtual -Wcast-align -Wwrite-strings
-Wcomments -march=pentiumpro -DCOVERAGE -fprofile-arcs -ftest-coverage -fPIC
-Isrc -I/home/lothar/workspace3/tradescapeAPI -I/opt2/ACE_wrappers
-I/opt2/ACE_wrappers/TAO -I/opt2/ACE_wrappers/TAO/orbsvcs
-I/opt2/boost/include/boost-1_32 -I/opt2/python-2.4/include/python2.4
-I/opt2/log4cplus/include -I/opt2/otl4/include
-I/opt2/oracle/product/10.1.0/client_1/rdbms/public -c -o
src/utility/.build/posix/coverage/PythonScriptExecutor.os
src/utility/PythonScriptExecutor.cpp
In file included from /opt2/log4cplus/include/log4cplus/logger.h:20,
from src/utility/PythonInterpreterGuard.h:12,
from src/utility/PythonScriptExecutor.cpp:7:
/opt2/log4cplus/include/log4cplus/config.h:79:1: warning: "HAVE_STAT"
redefined
In file included from /opt2/python-2.4/include/python2.4/Python.h:55,
from /opt2/boost/include/boost-1_32/boost/python/detail/wrap_python.hpp:121,
from /opt2/boost/include/boost-1_32/boost/python/detail/prefix.hpp:13,
from /opt2/boost/include/boost-1_32/boost/python/args.hpp:8,
from /opt2/boost/include/boost-1_32/boost/python.hpp:11,
from src/utility/PythonInterpreterGuard.h:10,
from src/utility/PythonScriptExecutor.cpp:7:
/opt2/python-2.4/include/python2.4/pyport.h:139:1: warning: this is the
location of the previous definition
/opt2/boost/include/boost-1_32/boost/mpl/aux_/integral_wrapper.hpp:72: error:
template argument 2 is invalid
/opt2/boost/include/boost-1_32/boost/mpl/aux_/integral_wrapper.hpp:73: error:
template argument 2 is invalid
/opt2/boost/include/boost-1_32/boost/python/detail/wrapper_base.hpp:24:
warning: unused parameter 'x'
/opt2/boost/include/boost-1_32/boost/python/detail/wrapper_base.hpp:82:
warning: unused parameter 'self'
src/utility/PythonScriptExecutor.cpp: In constructor
'xcerla::utility::PythonScriptExecutor::PythonScriptExecutor()':
src/utility/PythonScriptExecutor.cpp:41: warning: deprecated conversion from
string constant to 'char*''
Lothar
--
Lothar Werzinger Dipl.-Ing. Univ.
framework & platform architect
Xcerla Corporation
275 Tennant Avenue, Suite 202
Morgan Hill, Ca 95037
email: lothar at xcerla.com
phone: +1-408-776-9018
More information about the Cplusplus-sig
mailing list