Libboost_date_time链接错误

libboost_date_time linker error

本文关键字:错误 链接 date Libboost time      更新时间:2023-10-16

我刚刚在cygwin上构建并安装了boost,并试图编译一个程序,但它给了我一个链接器错误,因为它正在寻找libboost_date_time,而我在usr/local/lib中有libboost_date_time-mt我尝试使用以下命令(我最初使用的相同命令)重新安装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命令构建时不能工作,我该如何修复它吗?

./bootstrap.sh表示在当前目录下运行shell脚本bootstrap.sh

所以你需要进入目录脚本在So

cd C:cygwinhomebaboost_1_47_0

然后运行bootstrap脚本

如果您可以使用1.43

,则可以通过cygwin本身安装boost。
相关文章: