Boost C++ Libraries: Ticket #726: "-shared" not supported for linking under MacOS X https://svn.boost.org/trac10/ticket/726 <pre class="wiki">When I try to do a plain-vanilla build of Boost using bjam (following the directions at http://www.boost.org/more/getting_started.html pretty carefully) I get the following results for one of the targets (I note that "man gcc" says that "-shared is not supported under Mac OS X" -- do I need to configure Boost specially for Mac OS X?): gcc-Link-action bin/boost/libs/date_time/build/libboost_date_time.dylib/gcc/debug/shared-linkable-true/libboost_date_time-gcc-d-1_33_1.dylib powerpc-apple-darwin8-g++-4.0.1: unrecognized option '-shared' /usr/bin/ld: Undefined symbols: _main collect2: ld returned 1 exit status set -e DYLD_LIBRARY_PATH=bin/boost/libs/date_time/build/libboost_date_time.dylib/gcc/debug/shared-linkable-true:$DYLD_LIBRARY_PATH export DYLD_LIBRARY_PATH "c++" -g -fPIC -shared -o "bin/boost/libs/date_time/build/libboost_date_time.dylib/gcc/debug/shared-linkable-true/libboost_date_time-gcc-d-1_33_1.dylib" "bin/boost/libs/date_time/build/libboost_date_time.dylib/gcc/debug/shared-linkable-true/greg_month.o" "bin/boost/libs/date_time/build/libboost_date_time.dylib/gcc/debug/shared-linkable-true/greg_weekday.o" "bin/boost/libs/date_time/build/libboost_date_time.dylib/gcc/debug/shared-linkable-true/date_generators.o" ...failed gcc-Link-action bin/boost/libs/date_time/build/libboost_date_time.dylib/gcc/debug/shared-linkable-true/libboost_date_time-gcc-d-1_33_1.dylib... TIA, Jonathan </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/726 Trac 1.4.3 david_abrahams Tue, 19 Dec 2006 20:23:36 GMT status changed https://svn.boost.org/trac10/ticket/726#comment:1 https://svn.boost.org/trac10/ticket/726#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=52572 Originator: NO You need to use the "darwin" toolset instead of the "gcc" toolset. </pre> Ticket