Board index » cppbuilder » Conflict between Winsock.h & Winsock2.h
Chris
![]() CBuilder Developer |
Conflict between Winsock.h & Winsock2.h2005-09-01 08:54:01 AM cppbuilder35 I have CBuilder 6 Pro, I start off with a new vanilla application, and do nothing but try to include winsock2.h And I get the following error, What is going wrong and how do I fix it? I was told this might be affected by the order of my includes, but swapping things around makes no difference for me. Thanks Chris [C++ Error] winsock2.h(109): E2238 Multiple declaration for 'fd_set' Full parser context Unit1.cpp(6): #include C:\Program Files\Borland\CBuilder6\Projects\Unit1.h Unit1.h(6): #include c:\program files\borland\cbuilder6\include\winsock2.h [C++ Error] winsock.h(54): E2344 Earlier declaration of 'fd_set' Full parser context Unit1.cpp(6): #include C:\Program Files\Borland\CBuilder6\Projects\Unit1.h Unit1.h(6): #include c:\program files\borland\cbuilder6\include\winsock2.h |