Boost logo

Boost Users :

From: pendrildurham (kalb_at_[hidden])
Date: 2002-05-06 16:42:33


Sorry -- Newbie here -- I don't know exactly what the 'latest CVS
state' is or how to get it.

I have been trying to build boost-python on Windows95 with
MSVC++6. I have boost 1.27 and activestate python 2.2.1 build 222.
I can get it to compile but the link fails.

Here is the linker message for the boost-example1:

Linking...
    Creating library Debug/hello.lib and object Debug/hello.exp
example1.obj : error LNK2001: unresolved external symbol "bool __cdecl
boost::python::handle_exception_impl(class
boost::function0<void,struct boost::empty_function_policy,struct
boost::empty_function_mixin,int>)" (?handle_exception_impl_at_python@boos
t@@YA_NV?$function0_at_XUempty_function_policy_at_boost@@Uempty_function_mix
in_at_2@H_at_2@@Z)
bpl_static.lib(types.obj) : error LNK2001: unresolved external symbol
"bool __cdecl boost::python::handle_exception_impl(class
boost::function0<void,struct boost::empty_function_policy,struct
boost::empty_function_mixin,int>)" (?handle_exception_imp
l_at_python@boost@@YA_NV?$function0_at_XUempty_function_policy_at_boost@@Uempty
_function_mixin_at_2@H_at_2@@Z)
bpl_static.lib(extension_class.obj) : error LNK2001: unresolved
external symbol "bool __cdecl
boost::python::handle_exception_impl(class
boost::function0<void,struct boost::empty_function_policy,struct
boost::empty_function_mixin,int>)" (?handle_exc
eption_impl_at_python@boost@@YA_NV?$function0_at_XUempty_function_policy_at_boo
st@@Uempty_function_mixin_at_2@H_at_2@@Z)
bpl_static.lib(extension_class.obj) : error LNK2001: unresolved
external symbol "struct _object * __cdecl
boost::python::expect_non_null(struct _object *)"
(?expect_non_null_at_python@boost@@YAPAU_object@@PAU3@@Z)
bpl_static.lib(functions.obj) : error LNK2001: unresolved external
symbol "struct _object * __cdecl boost::python::expect_non_null(struct
_object *)" (?expect_non_null_at_python@boost@@YAPAU_object@@PAU3@@Z)
bpl_static.lib(objects.obj) : error LNK2001: unresolved external
symbol "struct _object * __cdecl boost::python::expect_non_null(struct
_object *)" (?expect_non_null_at_python@boost@@YAPAU_object@@PAU3@@Z)
example1.obj : error LNK2001: unresolved external symbol "struct
_object * __cdecl boost::python::expect_non_null(struct _object *)"
(?expect_non_null_at_python@boost@@YAPAU_object@@PAU3@@Z)
bpl_static.lib(module_builder.obj) : error LNK2001: unresolved
external symbol "struct _object * __cdecl
boost::python::expect_non_null(struct _object *)"
(?expect_non_null_at_python@boost@@YAPAU_object@@PAU3@@Z)
bpl_static.lib(init_function.obj) : error LNK2001: unresolved external
symbol "struct _object * __cdecl boost::python::expect_non_null(struct
_object *)" (?expect_non_null_at_python@boost@@YAPAU_object@@PAU3@@Z)
bpl_static.lib(classes.obj) : error LNK2001: unresolved external
symbol "struct _object * __cdecl boost::python::expect_non_null(struct
_object *)" (?expect_non_null_at_python@boost@@YAPAU_object@@PAU3@@Z)
Debug/hello.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

hello.dll - 11 error(s), 0 warning(s)

Perhaps there is something simple I can do to fix this? Perhaps
there is something I need to include in the project to get the link
to work?

Can anyone help?

Thanks

--- In Boost-Users_at_y..., Albrecht Fritzsche <albrecht.fritzsche_at_t...>
wrote:
> David Abrahams wrote:
>
> >1. Get the latest CVS state. Release 1.27 is broken in several
ways.
> >
> Ooops, ok - I will try the CVS version.
>
> >The library works with Python 2.2.1
> >
> Thanks - that's the info I was hoping for :-)
>
> Ali


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