You are not logged in.
Hello everyone,
I'm trying to compile a C++ code of mine (which normally works) after I updated boost this morning. I'm getting the following error:
undefined reference to `boost::test_tools::tt_detail::check_impl
It seems that the boost_unit_test_framework in arch is missing this function. The command
grep check_impl $(find /usr/lib/ -name "libboost*.so")
Does not return anything. On the other hand, with boost that I compiled myself, grep confirms that the function 'check_impl' is present in boost_unit_test_framework and the linking goes fine. This is with boost 1.59.0-2.
One side question: why are there boost libs in /usr/lib AND in /usr/lib64? (I have 64 bit system). I searched the libraries in both /usr/lib and /usr/lib64, the result is the same (check_impl not present) in case you're wondering.
Martin
Last edited by mvymazal (2015-10-26 13:03:46)
Offline
I can't help with most of this - but the libs in /usr/lib and /usr/lib64 are the exact same files: /usr/lib64 is a link to /usr/lib
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Based on the following, I believe you need to modify your code to support Boost 1.59.
https://github.com/eranpeer/FakeIt/issues/38
https://github.com/eranpeer/FakeIt/commit/b6951256411e
The following upstream change appears to have renamed check_impl() to report_assertion():
Offline
Hi,
you're right - this was not at all issue with boost, but my code. I was linking to boost 1.59 and also to a third-party code that was compiled with older boost version, hence the linking errors. Sorry for the false alarm.
Offline
Not a Pacman Issue, moving to Creating Packages.
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline