|
Boost : |
From: Pål Frogner Hansen (pal_at_[hidden])
Date: 2002-04-16 09:20:18
Question: To use boost.python, do I have to use the Jam thing? As there were dsw-workspaces included I hoped I could just use these.
Seemed to work, but I get linker errors.
I have tried with python 2.0.1, 2.2.0 and 2.2.1 installed. Also tried with vc6.0 and vc7.0. Building the example-project; both gives
me the error-message below.
What is wrong? Do I _need to_ use jam to build?
Thanx,
Pål Hansen (new to this!!)
--------------------Configuration: example1 - Win32 Debug--------------------
Compiling...
example1.cpp
..\..\..\..\boost/python/detail/extension_class.hpp(74) : warning C4231: nonstandard extension used : 'extern' before template
explicit instantiation
..\..\..\..\boost/python/detail/extension_class.hpp(75) : warning C4231: nonstandard extension used : 'extern' before template
explicit instantiation
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_mixin_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_boost@@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), 2 warning(s)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk