Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-08-12 20:25:27


At 07:58 PM 8/12/2002, David Abrahams wrote:

>I'm getting the following link error in my Boost.Python v2 tests
>all-of-a-sudden:
>
>MSVCRTD.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
>select_holder.obj : error LNK2019: unresolved external symbol "bool
__cdecl
>boost::test_toolbox::detail::test_and_continue_impl(bool,struct
>boost::test_toolbox::detail::wrapstrstream const &,char const
>*,int,bool,enum boost::unit_test_framework::report_level)"
>(?test_and_continue_impl_at_detail@test_toolbox_at_boost@@YA_N_NABUwrapstrstream@
>123_at_PBDH0W4report_level_at_unit_test_framework_at_3@@Z) referenced in function
>"void __cdecl assert_same(struct
>boost::python::objects::value_holder<struct Base> *,struct
>boost::python::objects::value_holder<struct Base> *)"
>(?assert_same@@YAXPAU?$value_holder_at_UBase@@@objects_at_python@boost@@0_at_Z)
>c:\build\libs\python\test\bin\select_holder.test\vc7\debug-python\runtime-l
>ink-dynamic\select_holder.exe : fatal error LNK1120: 2 unresolved
externals
>
>What's up with that?

You need to add the appropriate one of the three test librarys.

For example, limits_test used to be specified in the status/Jamfile like
this:

   [ run libs/config/test/limits_test.cpp ]

Now it must be done like this:

   [ run libs/config/test/limits_test.cpp
   <lib>../libs/test/build/test_exec_monitor ]

--Beman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk