Article View: borland.public.cppbuilder.internet.socket
Article #5645Re: Indy 9 / BCB6 / Winsock2 compiler error
From: Remy Lebeau (TeamB)
Date: Tue, 29 Jun 2004 17:08
Date: Tue, 29 Jun 2004 17:08
20 lines
1630 bytes
1630 bytes
"Alfred Thomas" <alfred@fischerint.co.za> wrote in message news:40e17606$1@newsgroups.borland.com... > I have written a Windows service and when I included a > module containing idHTTP, I get the following error: > multiple declaration for 'fd_set' etc. Indy uses WinSock2, whereas the VCL typically uses WinSock1 instead. The header files for the two are not compatible with each other. > I found that in scktcomp.hpp winsock.h is declared and winsock2.h in idHTTp. Correct. Why are you including ScktComp.hpp to begin with? That suggests that you are trying to use TClientSocket or TServerSocket, correct? If so, then why not use Indy's client/server components instead? Gambit
Technical Details
Message-ID:
<40e1a213$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40e17606$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,10073785558ea23d X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <40e17606$1@newsgroups.borland.com> Subject: Re: Indy 9 / BCB6 / Winsock2 compiler error Date: Tue, 29 Jun 2004 10:08:37 -0700 Lines: 22 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.169.168.124 Message-ID: <40e1a213$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1088528915 68.169.168.124 (29 Jun 2004 10:08:35 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail