🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

indy 9.00.15 Winsock.h vs. Winsock2.h TROUBLE

#4959
From: Frank
Date: Mon, 22 Nov 2004 12:01
20 lines
1432 bytes
hi!

Borland C++ Builder 6
Indy 9.00.15

Error with using TIdSMTP:

C++ Error: E2238 E2238 Multiple declaration of 'fd_set'
....

There's an include error between winsock.h of bcb and winsock2.h which comes
with the indy package...
I tried to define _WINSOCK_ in the cpp of my projectfile to prevent the
include of winsock.h but it seems that the compiler includes the file before
that #define statement... Please help....

Frank (german, sorry for my english style)

Ps.: With newer Versions of Indy the Installtion fails on my system.
(install okay, can't use components)
Technical Details
Message-ID: <41a1d512$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f39eb52eec8e73c6,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Frank" <frank.hofmann@stahlwerk-thueringen.de>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: indy 9.00.15 Winsock.h vs. Winsock2.h TROUBLE 
Date: Mon, 22 Nov 2004 13:01:22 +0100
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 195.124.129.3
Message-ID: <41a1d512$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1101124882 195.124.129.3 (22 Nov 2004 04:01:22 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail