I'm going to write my program which uses boost_python regardless to its version. Since the program is multithreaded, I must use libboost_python-mt. The thing is that when I install libboost_python-dev, I do not see libboots_python-mt.so in /usr/lib while following libraries exist:
我打算编写一个使用boost_python的程序,不管它的版本如何。由于程序是多线程的,我必须使用libboost_python-mt。问题是,当我安装libboost_python-dev时,我在/ usr / lib中看不到libboots_python-mt.so,而存在以下库:
libboost_python-mt-py27.so
libboost_python-py27.so.1.48.0
libboost_python.so
I'm using ubuntu 12.04, and I installed libboost_python-dev, libboost-all-dev
我正在使用ubuntu 12.04,我安装了libboost_python-dev,libboost-all-dev
1 个解决方案
#1
0
The -mt
suffix had been removed. The installed Boost libraries are multi-threading safe (from this link.)
-mt后缀已被删除。已安装的Boost库具有多线程安全性(来自此链接)。
Change the link flag from -lboost_python-mt
to -lboost_python
instead.
将链接标志从-lboost_python-mt更改为-lboost_python。
#1
0
The -mt
suffix had been removed. The installed Boost libraries are multi-threading safe (from this link.)
-mt后缀已被删除。已安装的Boost库具有多线程安全性(来自此链接)。
Change the link flag from -lboost_python-mt
to -lboost_python
instead.
将链接标志从-lboost_python-mt更改为-lboost_python。