libboost_date_time 链接器错误
我刚刚在 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 命令一起工作,以及如何修复它?
I just built and installed boost on cygwin and was trying to compile a program but it gave me a linker error because it was looking for libboost_date_time
, and I have libboost_date_time-mt
instead in usr/local/lib
I tried to reinstall boost using the following (the same command I had used initially)
./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
but I get the error:
bash: ./bootstrap.sh: no such file or directory
any idea why the build wouldn't have worked with the ./boostrap command above the first time, and how I can fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
./bootstrap.sh
表示运行cirrent目录下的shell脚本bootstrap.sh。因此,您需要进入脚本所在的目录
,然后运行引导脚本
另一种方法是通过 cygwin 本身 如果你可以使用 1.43
./bootstrap.sh
means run the shell script bootstrap.sh in the cirrent directory.So you need to be in the sirectory the script is in So
and then run the bootstrap script
An alternative is to install boost via cygwin itself if you can use 1.43