Boost logo

Boost-Build :

Subject: [Boost-build] linking to serialization
From: er (erwann.rogard_at_[hidden])
Date: 2009-11-02 20:08:26


Hi All, I use Mac OS X 10.6. After following the ./bootstrap.sh and bjam
install steps, I have directory like this:

~/Library/boost_library/boost_1_40_0/include
~/Library/boost_library/boost_1_40_0/lib/
libboost_serialization.a
libboost_serialization.dynlib

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:

The Debugger has exited with status 0.
Session started at 2009-11-02 19:52:02 -0500.
GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51
UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys003
Loading program into debugger…
Program loaded.
run
Switching to process 14735
Running…
dyld: Library not loaded: libboost_serialization.dylib
Referenced from:
~/projets/2009/Xcode/myproject/build/Debug/distribution_survival
Reason: image not found
sharedlibrary apply-load-rules all
Data Formatters temporarily unavailable, will re-try after a 'continue'.
(Cannot call into the loader at present, it is locked.)
warning: Couldn't find minimal symbol for "_sigtramp" - backtraces may
be unreliable
Cannot access memory at address 0x0
Cannot access memory at address 0x0
(gdb)

I use the SDK 10.6, 64 bit Intel architecture, otherwise (32bit) I get a
compile, not a runtime error (probably normal because by default bjam
creates the libraries for 64 bit).

Even if I remove libboost_serialization.a from the project and put
libboost_serialization.dylib in its place, I get the same runtime error.

Some help would be appreciated.


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