[C++-sig] boost-python link errors

Roman Yakovenko roman.yakovenko at gmail.com
Tue Aug 15 09:55:42 CEST 2006


On 8/15/06, Qun Cao <quncao at gmail.com> wrote:
> Hi Everyone,
>
> I ran into some linking problem when I try to use MSVC7 IDE to compile
> my python extension, I then tried to compile the getting_started1.cpp
> (located on boost_1_33\libs\python\example), the same link error
> happened.  My .dsp file was copied from
> libs/python/build/VisualStudio.as instructed on the boost building and
> testing manual on
> http://www.boost.org/libs/python/doc/building.html#testing.
> The only change I made was to add python include and libs path.  The
> errors are like this:
>
>
> Linking...
> getting_started2.obj : error LNK2019: unresolved external symbol
> "public: virtual __thiscall
> boost::python::error_already_set::~error_already_set(void)"
> ...
> boost::python::objects::py_function_impl_base::max_arity(void)const "

> I went through the manual and could not find any hints on this, please help!

The dsp project is not maintained well. It is possible, that it is
missing some source files
or user wrong runtime library. Or may be you forgot to add
boost_python.lib to the
link line( or dependencies ).

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list