Subject: Re: [Boost-build] linking to serialization
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-11-05 01:52:44
On Tuesday 03 November 2009 er wrote:
> Hi All, I use Mac OS X 10.6. After following the ./bootstrap.sh and bjam
> install steps, I have directory like this:
> and have the include directory path to Project > Build > Search path >
> Header Search Paths and and the lib directory path to Project > Build >
> Search path > Library Search Paths.
> In XCode I did Project > Add to project > libboost_serialization.a
> Running under Debug generates this message:
> dyld: Library not loaded: libboost_serialization.dylib
> Referenced from:
> Reason: image not found
I suspect this message means that you need to add
~/Library/boost_library/boost_1_40_0/lib/ to the runtime libraries path.
On command line, this can be done via the DYLD_LIBRARY_PATH variable,
you might want to manually expand ~ to your home directory above -- I don't know
how OSX shell behaves here.
I also don't know how to do this in XCode -- I suggest you first try running the
binary on the command line, with the above variable setting, and if it works,
check the XCode manual for a comparable setting.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk