building boost.test with mac os X
I am unable to build boost.test 1.32.0 on MacOS X 10.3/10.4. The build fails due to some undefined symbols. On MacOS 10.3, these symbols are: cpp_main(int, char**) test_main(int, char**) init_unit_test_suite(int, char**) On 10.4, these symbols are __Z8cpp_mainiPPc __Z9test_mainiPPc __Z20init_unit_test_suiteiPPc Does anyone know why this is happening and how to fix it? Thanks. Below is the output of the first of these link errors on 10.3: darwin-Link-DyLib-action builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwi n/debug/runtime-link-static/shared-linkable-true/libboost_prg_exec_monit or-sd-1_32.dylib ld: Undefined symbols: cpp_main(int, char**) DYLD_LIBRARY_PATH=builddir/bin/boost/libs/test/build/libboost_prg_exec_m onitor.dylib/darwin/debug/runtime-link-static/shared-linkable-true export DYLD_LIBRARY_PATH ld -dynamic -m -r -d -o "builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darw in/debug/runtime-link-static/shared-linkable-true/libboost_prg_exec_moni tor-sd-1_32.lo" "builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darw in/debug/runtime-link-static/shared-linkable-true/execution_monitor.o" "builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darw in/debug/runtime-link-static/shared-linkable-true/cpp_main.o" \ && \ c++ -static-libgcc -g -Wl,-dynamic -nostartfiles -Wl,-dylib -Wl,-ldylib1.o -o "builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darw in/debug/runtime-link-static/shared-linkable-true/libboost_prg_exec_moni tor-sd-1_32.dylib" "builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darw in/debug/runtime-link-static/shared-linkable-true/libboost_prg_exec_moni tor-sd-1_32.lo" \ \ \ && \ rm -f "builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darw in/debug/runtime-link-static/shared-linkable-true/libboost_prg_exec_moni tor-sd-1_32.lo" ...failed darwin-Link-DyLib-action builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwi n/debug/runtime-link-static/shared-linkable-true/libboost_prg_exec_monit or-sd-1_32.dylib... ...skipped <@boost!lib>libboost_prg_exec_monitor-sd-1_32.dylib for lack of <@boost!libs!test!build/libboost_prg_exec_monitor.dylib/darwin/debug/run time-link-static/shared-linkable-true>libboost_prg_exec_monitor-sd-1_32. dylib...
"Simmons, Aaron"
wrote in message news:B7D1DA96FF0BC94DBD469E8DDBAC7AC34597A2@dlee02.ent.ti.com... I am unable to build boost.test 1.32.0 on MacOS X 10.3/10.4. The build fails due to some undefined symbols. On MacOS 10.3, these symbols are: cpp_main(int, char**) test_main(int, char**) init_unit_test_suite(int, char**)
These symbols are supposed to be undefined. You define them in your test program. If your architecture doesn't support shared libraries with undefined symbols you will have to use static one. Gennadiy
participants (2)
-
Gennadiy Rozental
-
Simmons, Aaron