🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Indy and WinSock2.h problem

#4449
From: Stefano Bonifazi
Date: Tue, 08 Feb 2005 16:38
16 lines
1391 bytes
Hi all!
 When compiling a project with an Indy 9 component I always get the 
following compiler error:

Error:
[C++ Error] winsock2.h(109): E2238 Multiple declaration for 'fd_set'
.
(and so on)

I tried to fix that as suggested in a previous Newsgroup thread by adding 
_WINSOCKAPI_ to the project conditionals, but then the WinSock.hpp does not 
compile any more (I need both Indy and BCB Sockets components in my 
project!) ...any idea?

Thank You in advance!
Stefano B. 
Technical Details
Message-ID: <4208eb0f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,107c7f042cb7cb6a,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Stefano Bonifazi" <stefboombastic@email.it>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Indy and WinSock2.h problem
Date: Tue, 8 Feb 2005 17:38:40 +0100
Lines: 18
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: 212.141.199.112
Message-ID: <4208eb0f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1107880719 212.141.199.112 (8 Feb 2005 08:38:39 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail