boost.python and g++ 3.1 - Help needed
Hi - I am trying to recompile code that compiles cleanly with g++ 3.0.4 with g++ 3.1. I get the following error messages, which, I am affraid, I cannot decipher. Any hints would be greatly appreciated. -Francois g++ -c -g -fPIC -DBOOST -I/usr/local/ap/include/python2.2 -I/usr/local/ap/PLplot/include -I/usr/local/ap/galib/include -o pymathlib.o pymathlib.cc/usr/local/ap/include/boost/python/cross_module.hpp: In instantiation of `SuperCode::Vector<Real>& boost::python::from_python(PyObject*, boost::python::type<SuperCode::Vector<Real>&>, bool)': /usr/local/ap/include/boost/python/caller.hpp:1093: instantiated from `static PyObject* boost::python::caller<void>::call(void (*)(A1, A2, A3), PyObject*, PyObject*) [with A1 = SuperCode::Vector<Real>&, A2 = const SuperCode::Vector<Real>&, A3 = const SuperCode::Vector<Real>&]' /usr/local/ap/include/boost/python/detail/functions.hpp:73: instantiated from `PyObject* boost::python::detail::wrapped_function_pointer<R, F>::do_call(PyObject*, PyObject*) const [with R = Void, F = Void (*)(SuperCode::Vector<Real>&, const SuperCode::Vector<Real>&, const SuperCode::Vector<Real>&)]' /usr/local/ap/include/boost/function/function_base.hpp:153: instantiated from here /usr/local/ap/include/boost/python/cross_module.hpp:91: default argument given for parameter 3 of `SuperCode::Vector<Real>& boost::python::from_python(PyObject*, boost::python::type<SuperCode::Vector<Real>&>, bool = false)' /usr/local/ap/include/boost/python/cross_module.hpp:91: after previous specification in `SuperCode::Vector<Real>& boost::python::from_python(PyObject*, boost::python::type<SuperCode::Vector<Real>&>, bool = false)' /usr/local/ap/include/boost/python/cross_module.hpp: In instantiation of `const SuperCode::Vector<Real>& boost::python::from_python(PyObject*, boost::python::type<const SuperCode::Vector<Real>&>, bool)': /usr/local/ap/include/boost/python/caller.hpp:1093: instantiated from `static PyObject* boost::python::caller<void>::call(void (*)(A1, A2, A3), PyObject*, PyObject*) [with A1 = SuperCode::Vector<Real>&, A2 = const SuperCode::Vector<Real>&, A3 = const SuperCode::Vector<Real>&]' /usr/local/ap/include/boost/python/detail/functions.hpp:73: instantiated from `PyObject* boost::python::detail::wrapped_function_pointer<R, F>::do_call(PyObject*, PyObject*) const [with R = Void, F = Void (*)(SuperCode::Vector<Real>&, const SuperCode::Vector<Real>&, const SuperCode::Vector<Real>&)]' /usr/local/ap/include/boost/function/function_base.hpp:153: instantiated from here /usr/local/ap/include/boost/python/cross_module.hpp:94: default argument given for parameter 3 of `const SuperCode::Vector<Real>& boost::python::from_python(PyObject*, boost::python::type<const SuperCode::Vector<Real>&>, bool = false)' /usr/local/ap/include/boost/python/cross_module.hpp:94: after previous specification in `const SuperCode::Vector<Real>& boost::python::from_python(PyObject*, boost::python::type<const SuperCode::Vector<Real>&>, bool = false)'
Boost.Python v1 is incompatible with newer compilers like GCC 3.1, basically because it uses a non-conforming C++ construct and exploits a bug common to many C++ compilers at the core of its codebase. That's part of the reason we started freshly with Boost.Python v2. I'm afraid that if you want to use GCC 3.1 you'll have to switch to v2. That might be a good idea anyway, as v1 is going to be retired in the coming month. -Dave "jfo60540" <jfo60540@yahoo.com> wrote in message news:af04l9+35sh@eGroups.com...
Hi -
I am trying to recompile code that compiles cleanly with g++ 3.0.4 with g++ 3.1. I get the following error messages, which, I am affraid, I cannot decipher. Any hints would be greatly appreciated.
-Francois
participants (2)
-
David Abrahams
-
jfo60540