[zeromq-dev] ZMQ_POLLIN received on WRITE event

Goswin von Brederlow goswin-v-b at web.de
Fri Sep 26 11:39:16 CEST 2014


On Fri, Sep 26, 2014 at 11:25:37AM +0200, Dorvin wrote:
> W dniu 2014-09-26 10:39, Goswin von Brederlow pisze:
> 
> >>> a) actualy compiles
> >> It actualy compiles on Windows. I think I should state it more clearly
> >> in first post.
> >
> > With the includes for FD_SET missing and Sleep() undefined?
> >
> 
> I don't know what Windows version and which build environment you are 
> using but zmq.h includes winsock2.h (which defines fd_set). Winsock2.h 
> includes windows.h (which includes winbase.h). Winbase.h defines 
> Sleep(). I just created empty MSVC project and it worked like a charm.
> 
> This is interesting, so if you would like we could investigate your 
> situation but I would not like to spam this group so let's continue in 
> private.
> 
> 
> With regards,
> Jarek

Ok, problem solved then. Under linux the zmq.h includes far less and
yoiu have to actually include the proper headers for the stuff you use.
I assume Sleep() is another windows thing.

Portability is hard.

MfG
	Goswin



More information about the zeromq-dev mailing list