Using DBISAM and Indy Components in Same C++Builder Project Can Cause Compiler ErrorsWhen compiling a C++Builder project using both Indy and DBISAM, you may experience compiler errors like the following:
[C++ Error] winsock2.h(109): E2238 Multiple declaration for 'fd_set'
[C++ Error] winsock.h(54): E2344 Earlier declaration of 'fd_set'
The winsock2.h header file is included by the Indy components and is based on Winsock 2.2. The winsock.h header file is included by DBISAM and is based on the Winsock 1.0.
The solution is to add the following conditional define to your project:
_WINSOCKAPI_ Thanks to Royce Ressenden for reporting and finding the solution to this issue.
| |
|
| |
|