在cygwin中增强单线程库

boost single thread libraries in cygwin

本文关键字:单线程 增强 cygwin      更新时间:2023-10-16

我刚刚在cygwin上使用以下代码构建并安装了boost_1_47_0

./bootstrap.sh --with-libraries=chrono,date_time,exception,filesystem,graph,graph_parallel,iostreams,math,program_options,random,serialization,signals,system,test,thread,wave  link=static link=shared threading=single threading=multi

然后我运行下面的语句,

./b2  --layout=tagged

和消息表明它:

failed updating 2 targets and skipped 7 targets....

但是我继续跑了

./b2  --layout=tagged install

然而,我在/usr/local/lib中查找,我只有那些后缀为-mt

的库

我的程序正在寻找没有-mt后缀的库。但由于它不起作用,我按顺序运行:

bjam --clean debug release
./bootstrap.sh --with-libraries=all
./b2
./b2 --layout=tagged
./b2 --layout=tagged install

但是我仍然只看到/usr/local/lib

中的-mt库

谁能建议如何解决这个问题(我的程序寻找libboost_date_time而不是libboost_date_time-mt)…谢谢!

您需要使用"——layout=system"