Linking Boost Library in Linux
Change -llibboost_system
to -lboost_system
.
In linux, the "lib" prefix in front of a library is not used when referencing said library.
In this case james' answer was correct, but if anybody else happens to stumble upon this post like I did then be aware that you can get this message if you link old boost headers against newer libraries. get_system_category()
specifically has been deprecated. I ran into this problem while accidentally including distro-provided headers but linking against my own internal copy of boost.
If you still get problems you might want to include posix-threads by adding to the linker flags:
-lpthread