MyDAC 5.90.0.54 link error

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
easyblue
Posts: 64
Joined: Wed 02 Feb 2005 13:02
Location: Shanghai

MyDAC 5.90.0.54 link error

Post by easyblue » Thu 10 Dec 2009 02:06

Hello

Today I have upgraded from release 53 into release 54, and have following link error:

[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'
[C++ Error] winsock2.h(213): E2238 Multiple declaration for 'hostent'
[C++ Error] winsock.h(154): E2344 Earlier declaration of 'hostent'
[C++ Error] winsock2.h(226): E2238 Multiple declaration for 'netent'
[C++ Error] winsock.h(167): E2344 Earlier declaration of 'netent'
[C++ Error] winsock2.h(233): E2238 Multiple declaration for 'servent'
[C++ Error] winsock.h(174): E2344 Earlier declaration of 'servent'
[C++ Error] winsock2.h(245): E2238 Multiple declaration for 'protoent'
[C++ Error] winsock.h(186): E2344 Earlier declaration of 'protoent'
[C++ Error] winsock2.h(401): E2238 Multiple declaration for 'sockaddr_in'
[C++ Error] winsock.h(322): E2344 Earlier declaration of 'sockaddr_in'
[C++ Error] winsock2.h(411): E2238 Multiple declaration for 'WSAData'
[C++ Error] winsock.h(332): E2344 Earlier declaration of 'WSAData'
[C++ Error] winsock2.h(427): E2146 Need an identifier to declare
[C++ Error] winsock2.h(562): E2238 Multiple declaration for 'sockaddr'
[C++ Error] winsock.h(495): E2344 Earlier declaration of 'sockaddr'
[C++ Error] winsock2.h(602): E2238 Multiple declaration for 'sockproto'
[C++ Error] winsock.h(504): E2344 Earlier declaration of 'sockproto'
[C++ Error] winsock2.h(641): E2238 Multiple declaration for 'linger'
[C++ Error] winsock.h(541): E2344 Earlier declaration of 'linger'
[C++ Error] ws2tcpip.h(29): E2238 Multiple declaration for 'ip_mreq'
[C++ Error] ws2tcpip.h(29): E2228 Too many error or warning messages

Please check it. I guess that it could be related to the introduction of DBMonitor3, which has confliction with other internet related components.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 10 Dec 2009 07:36

I can't reproduce the problem. Please specify the IDE version you are using.

easyblue
Posts: 64
Joined: Wed 02 Feb 2005 13:02
Location: Shanghai

I am using BDS2006

Post by easyblue » Thu 10 Dec 2009 13:01

Hello

I am using BDS2006. In my software, also both Indy component and CodeSite components are used.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 11 Dec 2009 08:43

Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.
As a temporary solution, you should open the MyDAC_InstDir\Include\DBMonitorMessages.hpp file, find the following line:

Code: Select all

#include 	// Pascal unit
and change it to the line:

Code: Select all

#include 	// Pascal unit
MyDAC_InstDir is the MyDAC installation directory on your computer.

Post Reply