Boost logo

Boost Users :

Subject: Re: [Boost-users] Getting started with boost: Linker error onboost::system::get_system_category
From: Alex Black (alex_at_[hidden])
Date: 2009-07-01 10:05:01


Yes, that is actually what I used, but since figured out what you
pointed out that I had the wrong syntax.

So, my libraries got built as 32bit, hence the linker problem.

Thanks,

- Alex

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Vladimir Prus
Sent: Wednesday, July 01, 2009 3:16 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Getting started with boost: Linker error
onboost::system::get_system_category

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 mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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