|
Boost-Build : |
From: Denis Tkachov (dtkachov_at_[hidden])
Date: 2007-10-08 09:07:27
platform - Mac OS (Leopard)
boost: v.1.34
I have build boost with bjam. Bjam put its output to stage/lib folder.
I have specified full path to this folder in xcode project settings -
xcode cannot map the boost serialization library. Than I have
specified library in hand (I all the libraries - debug/release,
multitreaded, etc..) - xcode still fail to map boost libraries.
Same things I have tried with building library from command line using
gcc (g++) compiler.
G++ returns: "ld: in build, can't map file, errno=22"
Sample of command line is:
g++ * -I ~/lib/boost/boost_1_34_1/
~/lib/boost/boost_1_34_1/stage/lib/libboost_serialization-mt.a
BTW - sample listed here do not work for Mac OS X:
http://www.boost.org/more/getting_started/unix-variants.html
according to this sample I have to use such command line:
g++ * -I ~/lib/boost/boost_1_34_1/ -L
~/lib/boost/boost_1_34_1/stage/lib/ -llibboost_serialization-mt.a
in this case g++ out is "ld: library not found for
-llibboost_serialization-mt.a"
Omitting specification of suffix and prefix (as mentioned in manual
when set path via "-L" parameter and library via "-l" parameter) also
does not work.
Such command line (omitting "-L" parameter) also does not work :
g++ * -I ~/lib/boost/boost_1_34_1/
~/lib/boost/boost_1_34_1/stage/lib/libboost_serialization-mt.a
output:
ld: in build, can't map file, errno=22
>From above mentioned manual I noticed that boost library files must
contain "gcc" in name. I have found such files in bin.v2 forlder.
For example here:
bin.v2/libs/serialization/build/gcc-4.0.1/debug/link-static/threading-multi/
But linking with this file fails too.
Same project links and woks great under windows with same boost library.
Windows project links with boost serialization library
'libboost_serialization-vc80-mt-gd-1_34.lib'.
Please help me with liking boost serialization library under Mac OS X.
Best regards,
Denis
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