Boost logo

Boost Users :

Subject: [Boost-users] Boost on xcode(mac osx 10.6.3)
From: Rob Biermann (rob.biermann_at_[hidden])
Date: 2010-05-19 14:05:00


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/threading-multi
/Users/*usr*/boost_1_43_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/link-static/threading-multi
/Users/*usr*/boost_1_43_0/bin.v2/libs/system/build/darwin-4.2.1/release/link-static/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 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