-
Notifications
You must be signed in to change notification settings - Fork 145
Closed
Description
When using BOOST_TEST_DYN_LINK
, the linker flag -lboost_unit_test_framework
is not sufficient to successfully compile. Apparently there are more libraries that must be linked. For instance, when linking only with -lboost_unit_test_framework
, I get the error:
Undefined symbols for architecture x86_64:
"boost::unit_test::unit_test_log_t::instance()", referenced from:
___cxx_global_var_init in lanczos_smoothing_test-05d504.o
"boost::unit_test::decorator::collector_t::instance()", referenced from:
___cxx_global_var_init.3 in lanczos_smoothing_test-05d504.o
"boost::unit_test::ut_detail::auto_test_unit_registrar::auto_test_unit_registrar(boost::unit_test::test_case*, boost::unit_test::decorator::collector_t&, unsigned long)", referenced from:
___cxx_global_var_init.3 in lanczos_smoothing_test-05d504.o
ld: symbol(s) not found for architecture x86_64
clang: fatal error: linker command failed with exit code 1 (use -v to see invocation)
Metadata
Metadata
Assignees
Labels
No labels