Boost logo

Boost Users :

From: Andrey Tcherepanov (moyt63c02_at_[hidden])
Date: 2008-03-18 22:51:56


Julian,

you might want to

#define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */

before including any headers in your file. This way only winsock2.h will
be included. Or, alternatively, you can try to include winsock2.h yourself
before anything.

Have fun
   Andrey.

On Tue, 18 Mar 2008 16:22:48 -0600, Julian Cain <jolix_at_[hidden]> wrote:

> Sorry, that would be VS 9.0 (2008)
>
> On Tuesday, March 18, 2008, at 06:18PM, "Julian Cain" <jolix_at_[hidden]>
> wrote:
>> I have upgraded to VS 8.0 Standard and when compiling ASIO errors on
>> the following:
>>
>> 1>Unknown compiler version - please run the configure tests and report
>> the results
>> 1>C:\tor\trunk\lib\boost\boost/asio/detail/socket_types.hpp(27) : fatal
>> error C1189: #error : WinSock.h has already been included
>>
>> Is this a known problem?
>>
>> thanks
>>
>> jc


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net