Archived

This topic is now archived and is closed to further replies.

winsock2.h is broken

This topic is 5045 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

(I''m posting this here because it''s more of a general compiler issue that I can''t figure out at all...) Using Visual C++ .NET 2003, including winsock2.h leads to 57 redefinition errors. It seems to be because winsock.h is also being included somewhere, somehow, but I don''t see it anywhere in the file. Apparently it''s getting in through windows.h, but it does have inclusion guards. What''s going on?

Share this post


Link to post
Share on other sites
I''ve had this problem too, I don''t remember how I fixed it though. I just moved the include around (ie before all others, after all others, ...) until it worked.

Share this post


Link to post
Share on other sites