Hi I’m looking to update my pull request to ASIO and I’m looking at various NT logic that’s are causing problems for cross-compiles.

 

In various …

libs/asio/example/… /Jamfile.v2

 

else if [ os.name ] = NT

{

  lib ws2_32 ;

  lib mswsock ;

}

 

exe transmit_file

  : transmit_file.cpp

    /boost/system//boost_system

  : <define>BOOST_ALL_NO_LIB=1

    …

    <os>NT:<define>_WIN32_WINNT=0x0501

    <os>NT,<toolset>gcc:<library>ws2_32

    <os>NT,<toolset>gcc:<library>mswsock

    <os>NT,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS

 

Could we not just ?

 

    <target-os>windows:<library>ws2_32

    <target-os>windows:<library>mswsock

 

Many thanks,

 

Brian Kuhl

Wind River