🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

#include <winsock2.h> and compiler error

#2644
From: SVC
Date: Thu, 02 Mar 2006 21:28
17 lines
1317 bytes
Hi,

I have a project in which, in one header file, I have:
    #include <winsock2.h>

I cannot compiler the project since I am getting the error:

    [C++ Error] winsock2.h(109): E2238 Multiple declaration for 'fd_set'
    [C++ Error] winsock.h(54): E2344 Earlier declaration of 'fd_set'
    [C++ Error] winsock2.h(112): E2146 Need an identifier to declare
    [C++ Error] winsock2.h(153): E2238 Multiple declaration for 'timeval'

What am I doing wrong?

Thanks,

S.
Technical Details
Message-ID: <44076329$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6d5a03c4bb7e7449,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "SVC" <svchamlian@hotmail.com>
From: "SVC" <svchamlian@hotmail.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: #include <winsock2.h> and compiler error
Date: Thu, 2 Mar 2006 16:28:56 -0500
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 207.35.47.68
Message-ID: <44076329$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1141334825 207.35.47.68 (2 Mar 2006 13:27:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail