Article View: borland.public.cppbuilder.internet.socket
Article #2645Re: #include <winsock2.h> and compiler error
From: Remy Lebeau (TeamB)
Date: Thu, 02 Mar 2006 21:38
Date: Thu, 02 Mar 2006 21:38
17 lines
1461 bytes
1461 bytes
"SVC" <svchamlian@hotmail.com> wrote in message news:44076329$1@newsgroups.borland.com... > I have a project in which, in one header file, I have: > #include <winsock2.h> > > I cannot compiler the project since I am getting the error: Your code is including winsock.h earlier in the compiling. If winsock2.h is included before winsock.h then winsock.h is automatically disabled. But if winsock.h is included before winsock2.h, then you get the errors because winsock2.h is badly designed, and redeclares most things that winsock.h has already declared. Gambit
Technical Details
Message-ID:
<44076708$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeeder.wxs.nl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44076329$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6d5a03c4bb7e7449 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <44076329$1@newsgroups.borland.com> Subject: Re: #include <winsock2.h> and compiler error Date: Thu, 2 Mar 2006 13:38:08 -0800 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <44076708$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141335816 68.69.17.41 (2 Mar 2006 13:43:36 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeeder.wxs.nl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail