gpt4 book ai didi

c++ - libboost_date_time 链接器错误

转载 作者:行者123 更新时间:2023-11-28 01:03:36 30 4
gpt4 key购买 nike

我刚刚在 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 命令时无法正常工作吗?我该如何修复它?

最佳答案

./bootstrap.sh 表示运行cirrent目录下的shell脚本bootstrap.sh

所以你需要在脚本所在的目录中

cd C:\cygwin\home\ba\boost_1_47_0

然后运行引导脚本

另一种方法是通过 cygwin itself 安装 boost如果你可以使用 1.43

关于c++ - libboost_date_time 链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7543491/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com