首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >cygwin链接错误

cygwin链接错误
EN

Stack Overflow用户
提问于 2012-06-14 03:07:47
回答 2查看 2.2K关注 0票数 1

我想用cygwin制作网络模拟器shawn.exe,当我在链接步骤过程中断中调用make for时,模拟器需要boost库。请帮帮我,这都是make命令的结果:

代码语言:javascript
复制
{.
.
[100%] Built target shawnlib
Scanning dependencies of target shawn
[100%] Building CXX object CMakeFiles/shawn.dir/frontend/console/con_main.o
[100%] Building CXX object CMakeFiles/shawn.dir/apps/apps_init.o
Linking CXX executable shawn.exe
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lboost_regex-gcc-mt
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lboost_date_time-gcc-mt
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lboost_thread-gcc-mt
collect2: ld returned 1 exit status
CMakeFiles/shawn.dir/build.make:111: recipe for target `shawn.exe' failed
make[2]: *** [shawn.exe] Error 1
CMakeFiles/Makefile2:60: recipe for target `CMakeFiles/shawn.dir/all' failed
make[1]: *** [CMakeFiles/shawn.dir/all] Error 2
Makefile:72: recipe for target `all' failed
make: *** [all] Error 2
}
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2012-06-14 03:16:02

确保您已经安装了libboost-devel Cygwin包。重新运行Cygwin的setup.exe并安装该软件包(以及它的依赖项,如果不显式排除它们,应该会自动安装)。

票数 3
EN

Stack Overflow用户

发布于 2016-11-12 23:27:17

不需要重新安装cygwin。只需运行:

apt-cyg install libboost-devel

如果您还没有安装"apt-cyg“,请先运行以下步骤:

lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg

install apt-cyg /bin

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11021679

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档