User forums > Using Code::Blocks
Boost::test won't link
smallB:
Hi, I've just tried to use boost library for testing but during linking process I'm getting following error:
undefined reference to `boost::test_tools::tt_detail::check_impl(boost::test_tools::predicate_result const&, boost::unit_test::lazy_ostream const&, boost::unit_test::basic_cstring<char const>, unsigned int, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned int, ...)'|
What am I doing wrong?
oBFusCATed:
You're not linking to some of the boost libs. Check the docs, to see which one:)
smallB:
Which docs boost or gcc? And where to start? In fairness I don't think that without help I'm able to do that.
oBFusCATed:
Boost docs, of course.
There you'll find what libs you need to link for particular boost library.
The you can look at the GCC docs for the exact options you need to pass or check the C::B docs/wiki.
smallB:
Ok, thanks, I'll try to do it tomorrow and see what I can do with this.
Navigation
[0] Message Index
[#] Next page
Go to full version