1

cygwinを使用してネットワークシミュレーターshawn.exeを作成したいのですが、リンクステップのプロシージャブレークでmakeを呼び出すと、そのシミュレーターはライブラリをブーストする必要があります。私を助けてください、これはすべて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
}
4

2 に答える 2

3

libboost-develCygwinパッケージがインストールされていることを確認してください。Cygwinのsetup.exeを再実行し、そのパッケージをインストールします(また、その依存関係も、明示的に除外しない場合は自動的にインストールされます)。

于 2012-06-13T19:16:01.617 に答える
0

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

于 2016-11-12T15:27:16.733 に答える