Boost cygwin链接错误

Boost cygwin链接错误,boost,linker,Boost,Linker,我想用cygwin制作网络模拟器shawn.exe,该模拟器需要增强库 当我在链接步骤中调用make for时,程序中断。 请帮帮我, 这是make命令的全部结果: {. . [100%] Built target shawnlib Scanning dependencies of target shawn [100%] Building CXX object CMakeFiles/shawn.dir/frontend/console/con_main.o [100%] Building CXX

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

{.
.
[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
}

确保已安装
libboost-devel
Cygwin软件包。重新运行Cygwin的setup.exe并安装该软件包(以及它的依赖项,如果您没有明确排除它们,这些依赖项将自动安装)。

无需重新安装Cygwin。只需运行:
apt cyg安装libboost-devel

如果未安装“apt cyg”,请先运行以下步骤:
lynx-source rawgit.com/transcode-open/apt-cyg/master/apt-cyg>apt-cyg


安装apt cyg/bin

非常感谢。这对我很有帮助,向你们致意,祝你们成功。我不知道Cygwin有一个升级包。我从源代码编译了boost,代码中出现了奇怪的错误。这对我帮助很大,谢谢!