|
Boost Users : |
From: chun ping wang (cablepuff_at_[hidden])
Date: 2007-06-06 19:11:07
Hi i try compiling boost.python using make a file.
On cygwin i got it to work creating .pydf files.
I tried the same on windows python2.5 with boost 1.34
I get undefined reference errors such as this.
./boost_python/dfaPythonWrapper.o(.text+0x12a): In function `initdfa':
C:/CPW/cs_classes/./cs386/c++/dfaPythonWrapper.cpp:5: undefined reference to
`_imp___ZN5boost6python6detail11init_moduleEPKcPFvvE'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python6class_I3DFANS0_6detail13not_specifiedES4_S4_EC1INS0_4initISt3mapINS_6tuples5tupleIciNS9_9null_typeESB_SB_SB_SB_SB_SB_SB_EEiSt4lessISC_ESaISt4pairIKSC_iEEESt3setIiSD_IiESaIiEEN4mpl_5void_ESP_SP_SP_SP_SP_SP_SP_SP_SP_SP_SP_SP_EEEEPKcRKNS0_9init_baseIT_EE[boost::python::class_<DFA,
boost::python::detail::not_specified, boost::python::detail::not_specified,
boost::python::detail::not_specified>::class_<boost::python::init<std::map<boost::tuples::tuple<char,
int, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type>, int,
std::less<boost::tuples::tuple<char, int, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> >,
std::allocator<std::pair<boost::tuples::tuple<char, int,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> const, int> > >,
std::set<int, std::less<int>, std::allocator<int> >, mpl_::void_,
mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_,
mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_,
mpl_::void_, mpl_::void_> >(char const*,
boost::python::init_base<boost::python::init<std::map<boost::tuples::tuple<char,
int, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type>, int,
std::less<boost::tuples::tuple<char, int, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> >,
std::allocator<std::pair<boost::tuples::tuple<char, int,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> const, int> > >,
std::set<int, std::less<int>, std::allocator<int> >, mpl_::void_,
mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_,
mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_,
mpl_::void_, mpl_::void_> > const&)]+0x76): In function
`ZN5boost6python7type_idIRVKSt3setIiSt4lessIiESaIiEEEENS0_9type_infoEv':
C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp: undefined
reference to
`_imp___ZN5boost6python7objects10class_baseC2EPKcjPKNS0_9type_infoES4_'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python3defIPF3DFARKSsEEEvPKcT_[void
boost::python::def<DFA (*)(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)>(char const*, DFA (*)(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >
const&))]+0x78):C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp:
undefined reference to
`_imp___ZN5boost6python6detail17scope_setattr_docEPKcRKNS0_3api6objectES3_'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python6class_I3DFANS0_6detail13not_specifiedES4_S4_E10initializeINS0_9init_baseINS0_4initISt3mapINS_6tuples5tupleIciNSA_9null_typeESC_SC_SC_SC_SC_SC_SC_EEiSt4lessISD_ESaISt4pairIKSD_iEEESt3setIiSE_IiESaIiEEN4mpl_5void_ESQ_SQ_SQ_SQ_SQ_SQ_SQ_SQ_SQ_SQ_SQ_SQ_EEEEEEvRKT_[void
boost::python::class_<DFA, boost::python::detail::not_specified,
boost::python::detail::not_specified,
boost::python::detail::not_specified>::initialize<boost::python::init_base<boost::python::init<std::map<boost::tuples::tuple<char,
int, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type>, int,
std::less<boost::tuples::tuple<char, int, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> >,
std::allocator<std::pair<boost::tuples::tuple<char, int,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> const, int> > >,
std::set<int, std::less<int>, std::allocator<int> >, mpl_::void_,
mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_,
mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_,
mpl_::void_, mpl_::void_> >
>(boost::python::init_base<boost::python::init<std::map<boost::tuples::tuple<char,
int, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type>, int,
std::less<boost::tuples::tuple<char, int, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> >,
std::allocator<std::pair<boost::tuples::tuple<char, int,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> const, int> > >,
std::set<int, std::less<int>, std::allocator<int> >, mpl_::void_,
mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_,
mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_,
mpl_::void_, mpl_::void_> >
const&)]+0x24):C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp:
undefined reference to
`_imp___ZN5boost6python7objects10class_base17set_instance_sizeEj'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python6class_I3DFANS0_6detail13not_specifiedES4_S4_E8def_implIS2_MS2_FbRKSsRKiENS3_10def_helperIPKcS4_S4_S4_EEEEvPT_SF_T0_RKT1_z[void
boost::python::class_<DFA, boost::python::detail::not_specified,
boost::python::detail::not_specified,
boost::python::detail::not_specified>::def_impl<DFA, bool
(DFA::*)(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, int const&),
boost::python::detail::def_helper<char const*,
boost::python::detail::not_specified, boost::python::detail::not_specified,
boost::python::detail::not_specified> >(DFA*, char const*, bool
(DFA::*)(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, int const&),
boost::python::detail::def_helper<char const*,
boost::python::detail::not_specified, boost::python::detail::not_specified,
boost::python::detail::not_specified> const&,
...)]+0xef):C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp:
undefined reference to
`_imp___ZN5boost6python7objects16add_to_namespaceERKNS0_3api6objectEPKcS5_S7_'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python6detail17make_function_auxIM3DFAFbRKSsRKiENS0_21default_call_policiesENS_3mpl7vector4IbRS3_S5_S7_EEN4mpl_4int_ILi0EEEEENS0_3api6objectET_RKT0_RKT1_RKSt4pairIPKNS1_7keywordESU_ET2_[boost::python::api::object
boost::python::detail::make_function_aux<bool
(DFA::*)(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, int const&),
boost::python::default_call_policies, boost::mpl::vector4<bool, DFA&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, int const&>, mpl_::int_<0> >(bool (DFA::*)(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int const&),
boost::python::default_call_policies const&, boost::mpl::vector4<bool, DFA&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, int const&> const&, std::pair<boost::python::detail::keyword const*,
boost::python::detail::keyword const*> const&,
mpl_::int_<0>)]+0x8b):C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp:
undefined reference to
`_imp___ZN5boost6python7objects15function_objectERKNS1_11py_functionERKSt4pairIPKNS0_6detail7keywordES9_E'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python6detail17make_function_auxIPF3DFARKSsENS0_21default_call_policiesENS_3mpl7vector2IS3_S5_EEEENS0_3api6objectET_RKT0_RKT1_[boost::python::api::object
boost::python::detail::make_function_aux<DFA (*)(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&),
boost::python::default_call_policies, boost::mpl::vector2<DFA,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&> >(DFA (*)(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&), boost::python::default_call_policies const&,
boost::mpl::vector2<DFA, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&>
const&)]+0x7d):C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp:
undefined reference to
`_imp___ZN5boost6python7objects15function_objectERKNS1_11py_functionE'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python7objects21py_function_impl_baseC2Ev[boost::python::objects::py_function_impl_base::py_function_impl_base()]+0x14):C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp:
undefined reference to
`_imp___ZTVN5boost6python7objects21py_function_impl_baseE'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python9converter22shared_ptr_from_pythonI3DFAEC1Ev[boost::python::converter::shared_ptr_from_python<DFA>::shared_ptr_from_python()]+0x2f):C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp:
undefined reference to
`_imp___ZN5boost6python9converter8registry6insertEPFPvP7_objectEPFvS5_PNS1_30rvalue_from_python_stage1_dataEENS0_9type_infoE'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python7objects19register_dynamic_idI3DFAEEvPT_[void
boost::python::objects::register_dynamic_id<DFA>(DFA*)]+0x27):C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp:
undefined reference to
`_imp___ZN5boost6python7objects23register_dynamic_id_auxENS0_9type_infoEPFSt4pairIPvS2_ES4_E'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python19to_python_converterI3DFANS0_7objects18class_cref_wrapperIS2_NS3_13make_instanceIS2_NS3_12value_holderIS2_EEEEEEEC2Ev[boost::python::to_python_converter<DFA,
boost::python::objects::class_cref_wrapper<DFA,
boost::python::objects::make_instance<DFA,
boost::python::objects::value_holder<DFA> > >
>::to_python_converter()]+0x27):C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp:
undefined reference to
`_imp___ZN5boost6python9converter8registry6insertEPFP7_objectPKvENS0_9type_infoE'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python9converter22shared_ptr_from_pythonI3DFAE11convertibleEP7_object[boost::python::converter::shared_ptr_from_python<DFA>::convertible(_object*)]+0x11):C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp:
undefined reference to `_imp___Py_NoneStruct'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python9converter22shared_ptr_from_pythonI3DFAE11convertibleEP7_object[boost::python::converter::shared_ptr_from_python<DFA>::convertible(_object*)]+0x32):C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp:
undefined reference to
`_imp___ZN5boost6python9converter22get_lvalue_from_pythonEP7_objectRKNS1_12registrationE'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python9converter22shared_ptr_from_pythonI3DFAE9constructEP7_objectPNS1_30rvalue_from_python_stage1_dataE[boost::python::converter::shared_ptr_from_python<DFA>::construct(_object*,
boost::python::converter::rvalue_from_python_stage1_data*)]+0xfa):C:/Boost/include/boost_1_34/boost/python/converter/registered.hpp:
undefined reference to
`_imp___ZN5boost6python9converter18shared_ptr_deleterC1ENS0_6handleI7_objectEE'
./boost_python/dfaPythonWrapper.o(.text$_ZN5boost6python9converter22shared_ptr_from_pythonI3DFAE9constructEP7_objectPNS1_30rvalue_from_python_stage1_dataE[boost::python::converter::shared_ptr_from_python<DFA>::construct(_object*,
boost::python::converter::rvalue_from_python_stage1_data*)]+0x1ce): In
function `Z15init_module_dfav':
C:/CPW/cs_classes/./cs386/c++/dfaPythonWrapper.cpp:7: undefined reference to
`_imp___ZN5boost6python9converter18shared_ptr_deleterD1Ev'
.....
C:/Boost/lib/libboost_python-mgw34-1_34.a(function.o)(.text+0x52):
function.cpp: undefined reference to `_imp___Py_NotImplementedStruct'
C:/Boost/lib/libboost_python-mgw34-1_34.a(function.o)(.text+0x5b):
function.cpp: undefined reference to `_imp___Py_NotImplementedStruct'
C:/Boost/lib/libboost_python-mgw34-1_34.a(function.o)(.text+0xaa):
function.cpp: undefined reference to `_imp___Py_NoneStruct'
C:/Boost/lib/libboost_python-mgw34-1_34.a(function.o)(.text+0xba):
function.cpp: undefined reference to `_imp__PyMethod_New'
C:/Boost/lib/libboost_python-mgw34-1_34.a(function.o)(.text+0xe1):
function.cpp: undefined reference to `_imp__PyExc_RuntimeError'
C:/Boost/lib/libboost_python-mgw34-1_34.a(function.o)(.text+0xec):
function.cpp: undefined reference to `_imp__PyErr_SetString'
C:/Boost/lib/libboost_python-mgw34-1_34.a(function.o)(.text+0x218):
function.cpp: undefined reference to `_imp___Py_NoneStruct'
C:/Boost/lib/libboost_python-mgw34-1_34.a(function.o)(.text+0x25b):
function.cpp: undefined reference to `_imp___Py_NoneStruct'
Thanks for the help in advance.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net