【问题标题】:boost single thread libraries in cygwin在 cygwin 中提升单线程库
【发布时间】:2011-09-25 23:01:40
【问题描述】:

我刚刚在 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)...谢谢!

【问题讨论】:

    标签: c++ boost cygwin boost-date-time


    【解决方案1】:

    你需要使用“--layout=system”

    【讨论】:

    • 我刚刚跑了 ./b2 --layout=system.完成后,我现在正在运行 ./b2 --layout=system install。我将在完成后立即发布。它奏效了....非常感谢:-)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多