I am compiling a program which requires boost-thread-mt library. I have installed libboost-all-dev using sudo apt-get install libboost-all-dev
but compiler says that it cannot find boost-thread-mt library. Is this library in some other package? Please guide me what i need to install for this.
Ubuntu – Cannot find boost-thread-mt library
boostc
Best Answer
The
-mt
suffix had been removed. The installed Boost libraries are multi-threading safe.You can compile your program versus
libboost-thread
. Either by changing the source to use non-mt
libs or by making symbolic linkslibboost_thread.a
→libboost_thread-mt.a
. Same thing if you need shared libs.so
.