Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapter-07/recipe-01/cxx-example/tests/CMakeLists.txt Boost::unit:_test #518

Open
epmpub opened this issue May 18, 2020 · 0 comments
Open

Comments

@epmpub
Copy link

epmpub commented May 18, 2020

[100%] Linking CXX executable ../bin/cpp_test
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function _start': (.text+0x20): undefined reference to main'
CMakeFiles/cpp_test.dir/test.cpp.o: In function init_unit_test_suite(int, char**)': test.cpp:(.text+0x6f): undefined reference to boost::unit_test::framework::master_test_suite()'
CMakeFiles/cpp_test.dir/test.cpp.o: In function add_example_invoker()': test.cpp:(.text+0x18f): undefined reference to boost::unit_test::unit_test_log_t::set_checkpoint(boost::unit_test::basic_cstring, unsigned long, boost::unit_test::basic_cstring)'
test.cpp:(.text+0x26d): undefined reference to boost::unit_test::unit_test_log_t::set_checkpoint(boost::unit_test::basic_cstring<char const>, unsigned long, boost::unit_test::basic_cstring<char const>)' test.cpp:(.text+0x35a): undefined reference to boost::unit_test::unit_test_log_t::set_checkpoint(boost::unit_test::basic_cstring, unsigned long, boost::unit_test::basic_cstring)'
test.cpp:(.text+0x447): undefined reference to boost::unit_test::unit_test_log_t::set_checkpoint(boost::unit_test::basic_cstring<char const>, unsigned long, boost::unit_test::basic_cstring<char const>)' test.cpp:(.text+0x534): undefined reference to boost::unit_test::unit_test_log_t::set_checkpoint(boost::unit_test::basic_cstring, unsigned long, boost::unit_test::basic_cstring)'

ubuntu: 18.04.4 LTS
cmake : 3.17.2
boost: libboost-all-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant