Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost on xcode(mac osx 10.6.3)
From: Michael Jackson (mike.jackson_at_[hidden])
Date: 2010-05-19 15:57:10


On 5/19/10 2:05 PM, in article
AANLkTikdPwhvls44odWgy_EqB-d-MpsMHORvRTdRAntl_at_[hidden], "Rob Biermann"
wrote:

> Hi guys, im trying to add boost in a C++ project on Mac OS X for a while,
> but im stuck with reference errors.
>
> Undefined symbols:
> "boost::system::get_generic_category()", referenced from:
> __static_initialization_and_destruction_0(int, int)in Main.o
> __static_initialization_and_destruction_0(int, int)in Main.o
> __static_initialization_and_destruction_0(int, int)in Main.o
> "boost::system::get_system_category()", referenced from:
> boost::asio::error::get_system_category() in Main.o
> __static_initialization_and_destruction_0(int, int)in Main.o
> __static_initialization_and_destruction_0(int, int)in Main.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
>
>
>
> I builded librarys with bjam, i linked them in the LIBRARY_SEARCH_PATHS:
>
> LIBRARY_SEARCH_PATHS =
> /Users/*usr*/boost_1_43_0/bin.v2/libs/date_time/build/darwin-4.2.1/release/thr
> eading-multi
> /Users/*usr*/boost_1_43_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/li
> nk-static/threading-multi
> /Users/*usr*/boost_1_43_0/bin.v2/libs/system/build/darwin-4.2.1/release/link-s
> tatic/threading-multi
> /
> users/*usr*/boost_1_43_0/stage/lib <<Not sure if this is right, but no
> documentation shows right options
>
> Also i made sure the include paths are correct:
> HEADER_SEARCH_PATHS = /users/*usr*/boost_1_43_0
>
> I looked on the web for answeres, but lots of info was not on mac, and they
> only suggested to do things without any form of instructions.
>
> I got boost working on microsoft visual studio 2008 on windows 7, so i know
> it should work, but i am not sure if it is supposed to work on xcode.
>
> If anyone has more experience with this, can you please help me? :)
>
> Thanks in advance.
>
> EDIT:
> I'm trying to include asio.hpp in boost folder
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

I usually _install_ boost into /Users/Shared/Toolkits but that probably does
not matter here. You need to make sure the proper libraries are built and
you are telling the linker where to look for the libraries.

--
Mike Jackson

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