Linking to boost
The steps below were done after a re-install of XCode (apparently Snow upgrade did not upgrade it properly).
After following the ./bootstrap.sh and bjam install steps,
I have directory like this:
~/Library/boost library/boost_1_400/include
~/Library/boost library/boost_1_400/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 using a 64 bit by default).
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.
Macbook alum, Mac OS X (10.6.1), XCode 3.1.2