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)" (?handle_exception_impl@python@boos
t@@YA_NV?$function0@XUempty_function_policy@boost@@Uempty_function_mix
in@2@H@2@@Z)
bpl_static.lib(types.obj) : error LNK2001: unresolved external symbol
"bool __cdecl boost::python::handle_exception_impl(class
boost::function0)" (?handle_exception_imp
l@python@boost@@YA_NV?$function0@XUempty_function_policy@boost@@Uempty
_function_mixin@2@H@2@@Z)
bpl_static.lib(extension_class.obj) : error LNK2001: unresolved
external symbol "bool __cdecl
boost::python::handle_exception_impl(class
boost::function0)" (?handle_exc
eption_impl@python@boost@@YA_NV?$function0@XUempty_function_policy@boo
st@@Uempty_function_mixin@2@H@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@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@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@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@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@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@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@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@y..., Albrecht Fritzsche
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