12 Aug 2012 11:33
Re: EINTR, EAGAIN, EINPROGRESS, EDOULDBLOCK Compile warning
The patch which was introduced in 2012.08.08 of live555 "solves" the compile time problem, but leads to wrong error numbers in the binary. The reason for this is because VS2010 does define those error constants in "errno.h" but the Windows socket API does not use them. The Windows socket API still returns WSAE error codes only. But the WSAE error codes do not match the error codes which are defined "errno.h". There other ways to solve that problem. You may want to compile the library code with "-DNO_SSTREAM" which is the originator of the problem, because including of "<sstream>" in "groupsock" library also pulls in the problematic "errno.h" indirectly. You can undefine any already defined constants from "errno.h" like shown below. <<<NetCommon.h>>> ... ... ... #define closeSocket closesocket #ifdef EWOULDBLOCK #undef EWOULDBLOCK #endif #ifdef EINPROGRESS #undef EINPROGRESS #endif #ifdef EAGAIN #undef EAGAIN(Continue reading)
RSS Feed