🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Again: winsock2.h & fd_set

#3030
From: Vladimir Stefanovic
Date: Thu, 24 Nov 2005 18:10
25 lines
1549 bytes
Hi,

The problem is old (as I already find in the history
or this group) and is about multiple declaration of
'fd_set' when you work with Indy9.

Ok, I know that's because of ambigulity of winsock &
winsock2, but how can I force my service application
to compile.

I already placed:
   #include <winsock2.h>
... at the very beginning of all includes, and that *solved*
the problem. But is that all for all cases I can step into?

I also saw that someone is adding the well known
WIN32_LEAN_AND_MEAN.

What is the ultimate solution for this multiple declaration?



-- 
Best regards,
Vladimir Stefanovic 
Technical Details
Message-ID: <438601f1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f7509541482f23cb,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Again: winsock2.h & fd_set
Date: Thu, 24 Nov 2005 19:10:25 +0100
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.117.212.65
Message-ID: <438601f1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1132855793 82.117.212.65 (24 Nov 2005 10:09:53 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail