[Ecls-list] winsock.h or winsock2.h

Anton Vodonosov avodonosov at yandex.ru
Tue Aug 26 00:36:32 UTC 2008


It turned out that the <windows.h> file includes winsock.h
which caused the conflict with winsock2.h.

There is a special macro, WIN32_LEAN_AND_MEAN, that prevents
inclusion of redundant headers in windows.h.

See here:
http://msdn.microsoft.com/en-us/library/ms737629(VS.85).aspx
http://msdn.microsoft.com/en-us/library/6dwk3a1z.aspx

After I've added #define WIN32_LEAN_AND_MEAN 1 at the
top of ecl/config.h, usocket was compiled successfully.

Best regards,
-Anton





More information about the ecl-devel mailing list