[C++-sig] Newbie vector_indexing_suite Link Errors

David Brownell groups at DavidBrownell.com
Wed Aug 18 16:17:52 CEST 2004

I just discovered vector_indexing_suite, and am trying to compile the sample
application that is linked from the documentation. When I compile the C++
code, I get the following unresolved externals:

__declspec(dllimport) void __cdecl
boost::python::objects::register_dynamic_id_aux <snip>
__declspec(dllimport) void * __cdecl
boost::python::objects::find_static_type <snip>
__declspec(dllimport) public: __thiscall
__declspec(dllimport) void * __cdecl
boost::python::objects::find_dynamic_type <snip>
__declspec(dllimport) class boost::python::api::object const & __cdecl
boost::python::objects::identity_function <snip>
__declspec(dllimport) struct _object * __cdecl
boost::python::objects::make_nurse_and_patient <snip>
__declspec(dllimport) void __cdecl
boost::python::objects::stop_iteration_error <snip>

It seems strange to me that the symbols are decoared with dllimport rather
than dllexport, but I didn't see any unusual preprocessor magic going on in
the code or described in the documentation that would ensure that these
symbols are exported rather than imported. Is there something that I am
missing to compile the example?

Compiler: Microsoft Visual Studio v7.1
OS: Win XP
Boost: linking with $(PYTHON_ROOT)\libs\python23.lib and
libboost_python-vc71-mt-gd-1_31.lib (which was compiled using bjam)
Python: 2.3

Thanks in advance for your help!

David Brownell

More information about the Cplusplus-sig mailing list