🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #350

Re: TClientSocket, TServerSocket, background compiling

#350
From: Vladimir
Date: Fri, 07 Apr 2006 08:37
91 lines
3940 bytes
Yes, I know this problem.
The simplest solution, I am using, look for the #include "winsock.h" 
within the windows.h file and rename to the winsock2.h.
The other is will try to change the order of include files, the files 
with the winsock.h has to be before winsock2.h

Victor wrote:
> Hi Vladimir, I have yet added the TServerSocket component (addind the dclsocket100.bpl manually), and now I have these error when I compile my project.
> 
> [C++ Error] winsock2.h(113): E2238 Multiple declaration for 'fd_set'
> [C++ Error] winsock.h(55): E2344 Earlier declaration of 'fd_set'
> [C++ Error] winsock2.h(116): E2146 Need an identifier to declare
> [C++ Error] winsock2.h(157): E2238 Multiple declaration for 'timeval'
> [C++ Error] winsock.h(98): E2344 Earlier declaration of timeval'
>  ...
> 
> Thanks.
> 
> 
> Vladimir <zhuchko@jinr.ru> wrote:
> 
>>Victor wrote:
>>
>>>I have yet found JeffOvercash post, and I have added Tclientsocket and Tserversocket yet. But ...
>>>
>>>When I compile my project I get many error from files winsock.h and winsock2.h. 
>>>
>>>
>>>[C++ Error] winsock2.h(113): E2238 Multiple declaration for 'fd_set'
>>>[C++ Error] winsock.h(55): E2344 Earlier declaration of 'fd_set'
>>>[C++ Error] winsock2.h(116): E2146 Need an identifier to declare
>>>[C++ Error] winsock2.h(157): E2238 Multiple declaration for 'timeval'
>>>[C++ Error] winsock.h(98): E2344 Earlier declaration of 'timeval'
>>>...
>>>
>>>
>>>Any idea?
>>>
>>>Thanks!
>>>
>>>
>>>"victor" <victor@cymonline.com> wrote:
>>>
>>>
>>>>I get the same problem. Where�s the TServerSocket component?
>>>>I�m upgrading a project from BCB6 to BCB2006 too.
>>>>
>>>>I don�t know what�s the Jeff Overcash post?
>>>>
>>>>Victor.
>>>>
>>>>
>>>>
>>>>"Robert G. Hoover" <not.a.real.address@anywhere.sorry> wrote:
>>>>
>>>>
>>>>>Sorry, just saw the Jeff Overcash post...
>>>>>
>>>>>What about background compiling?
>>>>>
>>>>>
>>>>>Thanks,
>>>>>
>>>>>Rob
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>Robert G. Hoover wrote:
>>>>>
>>>>>
>>>>>>I just upgraded from BCB6 to BCB2006 and I love the new stuff. But, I 
>>>>>>can't find some of the old stuff.
>>>>>>
>>>>>>Has background compiling been removed?
>>>>>>
>>>>>>What happenned to TClientSocket and TServerSocket? I see a TTcpClient 
>>>>>>and TTcpServer, but I don't see then in the help file. I see 
>>>>>>TSocketConnection in the help file, but it says it's only for client. I 
>>>>>>rely on these objects. Can anyone help me?
>>>>>>
>>>>>>Thanks,
>>>>>>
>>>>>>Rob
>>>>
>>The answer was before, you have to install manually dclsockets100.bpl, 
>>this file presents in the $(BDS)/bin directory
> 
> 
Technical Details
Message-ID: <44362545@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <442c4334@newsgroups.borland.com> <442c44a0$1@newsgroups.borland.com> <443543c2$1@newsgroups.borland.com> <44354de5$1@newsgroups.borland.com> <4435fbc2$1@newsgroups.borland.com> <443620b1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,a9332de604aab91d
X-Google-Attributes: gid10529a,public
X-Google-Language: ENGLISH,ASCII
Date: Fri, 07 Apr 2006 12:37:54 +0400
From: Vladimir <zhuchko@jinr.ru>
Reply-To:  zhuchko@jinr.ru
Organization: JINR
User-Agent: Mozilla Thunderbird 1.0.5 (Windows/20050711)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.upgrade
Subject: Re: TClientSocket, TServerSocket, background compiling
References: <442c4334@newsgroups.borland.com> <442c44a0$1@newsgroups.borland.com> <443543c2$1@newsgroups.borland.com> <44354de5$1@newsgroups.borland.com> <4435fbc2$1@newsgroups.borland.com> <443620b1$1@newsgroups.borland.com>
In-Reply-To: <443620b1$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 159.93.20.97
Message-ID: <44362545@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1144399173 159.93.20.97 (7 Apr 2006 01:39:33 -0700)
Lines: 91
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail