Boost logo

Boost :

From: troy d. straszheim (troy_at_[hidden])
Date: 2005-01-08 14:50:38

Kon Lovett writes:
>> bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
>> debug/runti
>> me-link-static/shared-linkable-true/libboost_prg_exec_monitor-sd
>> -1_32.dylib
>>> ld: Undefined symbols: cpp_main(int, char**)
>> <snip>
> This an attempt to create a dynamic shared library w/ a two-level
> namespace & undefined symbols (cpp_main is a "call-out" from the
> library code). Not allowed. Must state the library (an "umbrella
> framework" usually) to resolve from at dynamic link time.
> I think this can be solved by shifting to a flat-namespace. I will try.

Yep, if you change the LINKFLAGS in tools/build/v1/darwin-tools.jam to:

    flags darwin LINKFLAGS <target-type>$(SHARED_TYPES) :
        -undefined suppress -flat_namespace -Wl,-dynamic -nostartfiles -Wl,-dylib -Wl,
-ldylib1.o ;

then things link and run ok...

troy d. straszheim

Boost list run by bdawes at, gregod at, cpdaniel at, john at