Installing liboost-dev on Debian Squeeze gives me several libraries like /usr/lib/libboost_thread.so.1.42.0
, but no libboost_thread.so
. Now I can't link using the -l
flag of gcc / ld because the names don't end in .so
.
I notice that /usr/lib
has plenty of other libraries of the form libfoo.so.N
without a libfoo.so
, so this isn't peculiar to Boost. I ended up adding libboost_thread.so.1
and libboost_thread.so
symlinks links by hand. (The man page for ldconfig
suggests it will add the links, but it didn't do anything).
Everything works fine, but it feels dirty. What should I have done?
- use some more specific linker option I haven't found yet (at the cost of making my makefiles depend on a specific version number).
- just add the symlinks by hand (at the risk of subverting package management).
- some other Debian 'right way' to do it.