From: Dean M. B. <mik...@gm...> - 2008-12-10 02:06:38
|
Thanks for this Cheng! Glyn, can we commit this to trunk? ---------- Forwarded message ---------- From: 连城 <rhy...@gm...> Date: Tue, Dec 9, 2008 at 8:27 PM Subject: Failed to compile SVN trunk code under cygwin To: "Dean Michael C. Berris" <cpp...@li...> Hi, all I just checked out the trunk code and played around. I found the trunk code cannot be compiled under Cygwin with Boost 1.36. Here I attached a working patch to trunk/libs/network/test/Jamfile.v2, wish this may help :-) Regards Cheng Index: libs/network/test/Jamfile.v2 =================================================================== --- libs/network/test/Jamfile.v2 (revision 116) +++ libs/network/test/Jamfile.v2 (working copy) @@ -4,6 +4,14 @@ # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) +import os ; + +if [ os.name ] = CYGWIN +{ + lib ws2_32 ; + lib mswsock ; +} + project network_test : requirements <include>../../../ @@ -14,6 +22,10 @@ <source>/boost//thread <source>/boost//filesystem <toolset>gcc:<linkflags>-lpthread + <os>cygwin,<toolset>gcc:<define>_WIN32_WINNT=0x0501 + <os>cygwin,<toolset>gcc:<define>__USE_W32_SOCKETS + <os>cygwin,<toolset>gcc:<library>ws2_32 + <os>cygwin,<toolset>gcc:<library>mswsock <toolset>msvc:<define>BOOST_ASIO_NO_WIN32_LEAN_AND_MEAN <toolset>msvc:<define>WIN32_LEAN_AND_MEAN <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS -- Dean Michael C. Berris Software Engineer, Friendster, Inc. |