🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3724

Re: multiple declaration for fd_set

#3724
From: Jonathan Benedicto
Date: Fri, 29 Jul 2005 23:58
18 lines
1650 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:42eab88b@newsgroups.borland.com...
> That does not usually work, because the VCL includes windows.h, which in
> turn includes winsock.h before any VCL headers are included.  If 
> winsock.h
> is included before winsock2.h then all hell breaks lose with winsock2.h, 
> as
> is evident by Sergey's original message.  On the other hand, if 
> winsock2.h
> is included before winsock.h, winsock2.h disables winsock.h and all is 
> good.

So then the OP should change his unit.cpp to read

#include <winsock2.h>
#include <vcl.h>

Jonathan 
Technical Details
Message-ID: <42eac28d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42eaa240$1@newsgroups.borland.com> <42eaaae2$1@newsgroups.borland.com> <42eab88b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,389415673120a5bd
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <incorrect@no.server>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <42eaa240$1@newsgroups.borland.com> <42eaaae2$1@newsgroups.borland.com> <42eab88b@newsgroups.borland.com>
Subject: Re: multiple declaration for fd_set
Date: Fri, 29 Jul 2005 19:58:06 -0400
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 64.231.5.149
Message-ID: <42eac28d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1122681485 64.231.5.149 (29 Jul 2005 16:58:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail