0

我刚刚在 cygwin 上构建并安装了 boost 并试图编译一个程序,但它给了我一个链接器错误,因为它正在寻找libboost_date_time,而我libboost_date_time-mt在 usr/local/lib 中尝试使用以下命令重新安装 boost(相同的命令我最初使用过)

./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

但我得到了错误:

bash: ./bootstrap.sh: no such file or directory

知道为什么构建不会第一次使用上面的 ./boostrap 命令,以及如何修复它?

4

1 回答 1

3

./bootstrap.sh表示在 cirrent 目录中运行 shell 脚本 bootstrap.sh。

所以你需要在脚本所在的sirectory中所以

cd C:\cygwin\home\ba\boost_1_47_0

然后运行引导脚本

如果可以使用 1.43 ,另一种方法是通过cygwin 本身安装 boost

于 2011-09-25T04:02:45.950 回答