Boost logo

Boost :

From: Bernhard Glück (contact_at_[hidden])
Date: 2000-06-10 09:56:03


Hi !!

I am really impressed with the boost libraries. I am especially
interested in the Python Wrapper library (for exporting your own
classes/functions)

However i have a problem linking it ...The library seems to be
implemented entirely in the headers ( I think it is ) and I used the
Simple example of the docs..
So i included the class_builder.hpp and imported the namespace etc....
However I get one compiler warning :
warning C4541: 'dynamic_cast' used on polymorphic type 'class
boost::python::detail::instance_holder_base' with /GR-; unpredictable
behavior may result
        c:\programme\microsoft visual studio\vc98\include\xstring(583) :
while compiling class-template member function 'void *__thiscall
boost::python::detail::extension_class<class Test,class
boost::python::detail::held_instance<class Test> >::ext
ract_object_from_holder(class
boost::python::detail::instance_holder_base *) const'
 
 
and about 50 unresolved externals, it seem some library or source code
is missing
I am using MSVC 6.0 with Service Pack 5 and Python 2.1 final release..
Any clues on this one ? maybe i am missing something trivial
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Here the unresolved externals:
 
error LNK2001: unresolved external symbol "void __cdecl
boost::python::handle_exception(void)"
(?handle_exception_at_python@boost@@YAXXZ)
Main.obj : error LNK2001: unresolved external symbol "public: __thiscall
boost::python::module_builder::~module_builder(void)"
(??1module_builder_at_python@boost@@QAE_at_XZ)
Main.obj : error LNK2001: unresolved external symbol "public: __thiscall
boost::python::module_builder::module_builder(char const *)"
(??0module_builder_at_python@boost@@QAE_at_PBD@Z)
Main.obj : error LNK2001: unresolved external symbol "public: void
__thiscall boost::python::module_builder::add(class
boost::python::reference<struct _object>,char const *)"
(?add_at_module_builder_at_python@boost@@QAEXV?$reference_at_U_object@@@23_at_PBD@Z)
Main.obj : error LNK2001: unresolved external symbol "public: virtual
struct _object * __thiscall
boost::python::detail::type_object_base::instance_sequence_repeat(struct
_object *,int)const "
(?instance_sequence_repeat_at_type_object_base_at_detail@pytho
n_at_boost@@UBEPAU_object@@PAU5_at_H@Z)
Main.obj : error LNK2001: unresolved external symbol "public: virtual
struct _object * __thiscall
boost::python::detail::type_object_base::instance_sequence_concat(struct
_object *,struct _object *)const "
(?instance_sequence_concat_at_type_object_base
@detail_at_python@boost@@UBEPAU_object@@PAU5_at_0@Z)
Main.obj : error LNK2001: unresolved external symbol "private: virtual
void __thiscall
boost::python::detail::class_base::instance_dealloc(struct _object
*)const "
(?instance_dealloc_at_class_base_at_detail@python_at_boost@@EBEXPAU_object@@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: __thiscall
boost::python::detail::extension_class_base::extension_class_base(char
const *)" (??0extension_class_base_at_detail@python_at_boost@@QAE_at_PBD@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::repr(void)"
(?repr_at_instance@python_at_boost@@QAEPAU_object@@XZ)
Main.obj : error LNK2001: unresolved external symbol "public: int
__thiscall boost::python::instance::compare(struct _object *)"
(?compare_at_instance@python_at_boost@@QAEHPAU_object@@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::str(void)"
(?str_at_instance@python_at_boost@@QAEPAU_object@@XZ)
Main.obj : error LNK2001: unresolved external symbol "public: long
__thiscall boost::python::instance::hash(void)"
(?hash_at_instance@python_at_boost@@QAEJXZ)
Main.obj : error LNK2001: unresolved external symbol "public: int
__thiscall boost::python::instance::length(void)"
(?length_at_instance@python_at_boost@@QAEHXZ)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::get_subscript(struct
_object *)"
(?get_subscript_at_instance@python_at_boost@@QAEPAU_object@@PAU4@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: void
__thiscall boost::python::instance::set_subscript(struct _object
*,struct _object *)"
(?set_subscript_at_instance@python_at_boost@@QAEXPAU_object@@0_at_Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::get_slice(int,int)"
(?get_slice_at_instance@python_at_boost@@QAEPAU_object@@HH_at_Z)
Main.obj : error LNK2001: unresolved external symbol "void __cdecl
boost::python::adjust_slice_indices(struct _object *,int &,int &)"
(?adjust_slice_indices_at_python@boost@@YAXPAU_object@@AAH1_at_Z)
Main.obj : error LNK2001: unresolved external symbol "public: void
__thiscall boost::python::instance::set_slice(int,int,struct _object *)"
(?set_slice_at_instance@python_at_boost@@QAEXHHPAU_object@@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::add(struct _object *)"
(?add_at_instance@python_at_boost@@QAEPAU_object@@PAU4@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::subtract(struct _object
*)" (?subtract_at_instance@python_at_boost@@QAEPAU_object@@PAU4@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::multiply(struct _object
*)" (?multiply_at_instance@python_at_boost@@QAEPAU_object@@PAU4@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::divide(struct _object *)"
(?divide_at_instance@python_at_boost@@QAEPAU_object@@PAU4@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::remainder(struct _object
*)" (?remainder_at_instance@python_at_boost@@QAEPAU_object@@PAU4@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::divmod(struct _object *)"
(?divmod_at_instance@python_at_boost@@QAEPAU_object@@PAU4@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::power(struct _object
*,struct _object *)"
(?power_at_instance@python_at_boost@@QAEPAU_object@@PAU4_at_0@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::negative(void)"
(?negative_at_instance@python_at_boost@@QAEPAU_object@@XZ)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::positive(void)"
(?positive_at_instance@python_at_boost@@QAEPAU_object@@XZ)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::absolute(void)"
(?absolute_at_instance@python_at_boost@@QAEPAU_object@@XZ)
Main.obj : error LNK2001: unresolved external symbol "public: int
__thiscall boost::python::instance::nonzero(void)"
(?nonzero_at_instance@python_at_boost@@QAEHXZ)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::invert(void)"
(?invert_at_instance@python_at_boost@@QAEPAU_object@@XZ)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::lshift(struct _object *)"
(?lshift_at_instance@python_at_boost@@QAEPAU_object@@PAU4@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::rshift(struct _object *)"
(?rshift_at_instance@python_at_boost@@QAEPAU_object@@PAU4@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::do_and(struct _object *)"
(?do_and_at_instance@python_at_boost@@QAEPAU_object@@PAU4@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::do_xor(struct _object *)"
(?do_xor_at_instance@python_at_boost@@QAEPAU_object@@PAU4@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::do_or(struct _object *)"
(?do_or_at_instance@python_at_boost@@QAEPAU_object@@PAU4@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: int
__thiscall boost::python::instance::coerce(struct _object * *,struct
_object * *)" (?coerce_at_instance@python_at_boost@@QAEHPAPAU_object@@0_at_Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::as_int(void)"
(?as_int_at_instance@python_at_boost@@QAEPAU_object@@XZ)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::as_long(void)"
(?as_long_at_instance@python_at_boost@@QAEPAU_object@@XZ)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::as_float(void)"
(?as_float_at_instance@python_at_boost@@QAEPAU_object@@XZ)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::oct(void)"
(?oct_at_instance@python_at_boost@@QAEPAU_object@@XZ)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::hex(void)"
(?hex_at_instance@python_at_boost@@QAEPAU_object@@XZ)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::call(struct _object
*,struct _object *)"
(?call_at_instance@python_at_boost@@QAEPAU_object@@PAU4_at_0@Z)
Main.obj : error LNK2001: unresolved external symbol "public: struct
_object * __thiscall boost::python::instance::getattr(char const
*,bool)" (?getattr_at_instance@python_at_boost@@QAEPAU_object@@PBD_N_at_Z)
Main.obj : error LNK2001: unresolved external symbol "public: int
__thiscall boost::python::instance::setattr(char const *,struct _object
*)" (?setattr_at_instance@python_at_boost@@QAEHPBDPAU_object@@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: __thiscall
boost::python::detail::extension_instance::~extension_instance(void)"
(??1extension_instance_at_detail@python_at_boost@@QAE_at_XZ)
Main.obj : error LNK2001: unresolved external symbol "public: virtual
__thiscall
boost::python::detail::type_object_base::~type_object_base(void)"
(??1type_object_base_at_detail@python_at_boost@@UAE_at_XZ)
Main.obj : error LNK2001: unresolved external symbol "protected: void
__thiscall boost::python::detail::extension_class_base::add_method(class
boost::python::detail::function *,char const *)"
(?add_method_at_extension_class_base_at_detail@python_at_boost@@IA
EXPAVfunction_at_234@PBD_at_Z)
Main.obj : error LNK2001: unresolved external symbol "protected: void
__thiscall
boost::python::detail::extension_class_base::add_constructor_object(clas
s boost::python::detail::function *)"
(?add_constructor_object_at_extension_class_base_at_detail@pytho
n_at_boost@@IAEXPAVfunction_at_234@@Z)
Main.obj : error LNK2001: unresolved external symbol "private: virtual
struct _object * __thiscall boost::python::detail::init::do_call(struct
_object *,struct _object *)const "
(?do_call_at_init@detail_at_python@boost@@EBEPAU_object@@PAU5_at_0@Z)
Main.obj : error LNK2001: unresolved external symbol "public: __thiscall
boost::python::detail::function::function(void)"
(??0function_at_detail@python_at_boost@@QAE_at_XZ)
Main.obj : error LNK2001: unresolved external symbol "char const *
__cdecl boost::python::from_python(struct _object *,struct
boost::python::type<char const *>)"
(?from_python_at_python@boost@@YAPBDPAU_object@@U?$type_at_PBD@12@@Z)
Main.obj : error LNK2001: unresolved external symbol "void __cdecl
boost::python::detail::report_missing_instance_data(class
boost::python::detail::extension_instance *,class
boost::python::class_t<class boost::python::detail::extension_instance>
*,
class type_info const &)"
(?report_missing_instance_data_at_detail@python_at_boost@@YAXPAVextension_inst
ance_at_123@PAV?$class_t_at_Vextension_instance_at_detail@python_at_boost@@@23_at_ABVty
pe_info@@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: void *
__thiscall
boost::python::detail::extension_class_base::try_class_conversions(class
boost::python::detail::instance_holder_base *)const "
(?try_class_conversions_at_extension_class_ba
se_at_detail@python_at_boost@@QBEPAXPAVinstance_holder_base_at_234@@Z)
Main.obj : error LNK2001: unresolved external symbol "class
boost::python::detail::extension_instance * __cdecl
boost::python::detail::get_extension_instance(struct _object *)"
(?get_extension_instance_at_detail@python_at_boost@@YAPAVextension_instance_at_12
3_at_PAU_object@@@Z)
 
 
 
 
 



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk