[zeromq-dev] Assertion failed: fds.size() <= FD_SETSIZE in select.cpp:67

Pieter Hintjens ph at imatix.com
Tue Nov 16 10:39:08 CET 2010


On Tue, Nov 16, 2010 at 10:35 AM, Pieter Hintjens <ph at imatix.com> wrote:

> * #define FD_SETSIZE 1024 in the 4 places that 0MQ includes
> "winsock.h" or "winsock2.h" (zmq.h, select.cpp, select.hpp,
> windows.hpp afair)

Sorry, I'm not being clear.  You need to define FD_SETSIZE _before_
including winsock.h/winsock2.h.  This constant defines the size of the
fd_set type used for all calls to select() and the FD_CLR/FD_SET/etc.
macros in a specific source file.

The simplest is to define this externally, in the MSVC project file,
as a macro definition that gets passed to all source files regardless.

-Pieter



More information about the zeromq-dev mailing list