preprocess icon indicating copy to clipboard operation
preprocess copied to clipboard

Undefined reference to boost unit_test while using make

Open abdullahkhilji opened this issue 4 years ago • 1 comments

tokenize_piece_test.cc:(.text.startup+0xb): undefined reference to `boost::unit_test::unit_test_main(bool (*)(), int, char**)'

abdullahkhilji avatar Jun 16 '20 13:06 abdullahkhilji

Boost is notoriously difficult to link with. But the good news is this is only tests, so the code should still work for you.

I'm not sure how you're installing Boost, but here is an admittedly outdated guide: https://neural.mt/code/kenlm/dependencies/

kpu avatar Jun 16 '20 21:06 kpu