Article View: borland.public.cppbuilder.internet.socket
Article #4561Re: NO_WIN32_LEAN_AND_MEAN with Indy
From: Karsten
Date: Wed, 26 Jan 2005 07:22
Date: Wed, 26 Jan 2005 07:22
50 lines
2256 bytes
2256 bytes
Thanks a lot for your answer ! Yes, this is basically a good idea. I have tried to do so. For any reason, even if i define it everywhere ;), winsock.h seem to be included earlier. I have tried it with my "Project.cpp" which is the earliest file to be included in my borland c project. Example: //--------------------------------------------------------------------------- #define _WINSOCKAPI_ #include <vcl.h> . . It does not work..... Error: [C++ Error] winsock2.h(109): E2238 Multiple declaration for 'fd_set' . (and so on) br, Karsten. " Bruce Salzman" <bruce@nospam.org> schrieb im Newsbeitrag news:41f6a187@newsgroups.borland.com... > > "Karsten" <NoSpam@NoSpam.com> wrote in message > news:41f6607d$1@newsgroups.borland.com... >> Hello ! >> >> Iam using an external component which forces me to use >> "NO_WIN32_LEAN_AND_MEAN" to compile my project. >> >> Unfortunately it looks like this conditional includes the old Winsock API >> to my Project which is, in my understanding, not compatible with Indy >> which is using Winsock2. >> >> Is there any way to compile Indy with this conditional set ? >> > > Try defining _WINSOCKAPI_ to keep the contents of winsock.h from being > included. > > > -- > Bruce >
Technical Details
Message-ID:
<41f74512@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41f6607d$1@newsgroups.borland.com> <41f6a187@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6834910b25d214b X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Karsten" <NoSpam@NoSpam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <41f6607d$1@newsgroups.borland.com> <41f6a187@newsgroups.borland.com> Subject: Re: NO_WIN32_LEAN_AND_MEAN with Indy Date: Wed, 26 Jan 2005 08:22:22 +0100 Lines: 52 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; Response NNTP-Posting-Host: 212.185.175.23 Message-ID: <41f74512@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106724114 212.185.175.23 (25 Jan 2005 23:21:54 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail