|
Boost Users : |
Subject: Re: [Boost-users] Getting started with boost: Linker error on boost::system::get_system_category
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-07-01 03:16:16
Alex Black wrote:
> I'm just getting started with boost:
> - I'm using boost::asio
> - I'm on Vista x64, using Visual Studio 2008 SP1
> - I built the x64 libs using bjam --address-mode=64 ....
Did you actually use
--address-model=64
command line option? If so, this is wrong, according to:
http://www.boost.org/boost-build2/doc/html/bbv2/advanced/invocation.html
you should use
address-model=64
> - I've got my code compiling (but not linking)
> - I got it pointed to the libs, so it finds the datetime, regex lib etc
>
> I get these errors:
>
> Error 84 error LNK2001: unresolved external symbol "class
> boost::system::error_category const & __cdecl
> boost::system::get_system_category(void)"
> (?get_system_category_at_system@boost@@YAAEBVerror_category_at_12@XZ)
>
> Error 85 error LNK2001: unresolved external symbol "class
> boost::system::error_category const & __cdecl
> boost::system::get_generic_category(void)"
> (?get_generic_category_at_system@boost@@YAAEBVerror_category_at_12@XZ)
>
> any tips?
Define BOOST_LIB_DIAGNOSTIC to 1 when building your application,
then examine the output, and then follow the procedure at:
http://vladimir_prus.blogspot.com/2009/06/linking-101.html
- Volodya
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net