[zeromq-dev] x64 Mingw32 build errors

Steven McCoy steven.mccoy at miru.hk
Sat May 28 00:56:46 CEST 2011

Latest sync up with any zeromq repo seems to fail on x64,

$ x86_64-w64-mingw32-g++ -DHAVE_CONFIG_H -pedantic -Werror -Wall
-Wno-long-long -D_REENTRANT -D_THREAD_SAFE -g -O2 -MT libzmq_la-ctx.lo -MD
-MP -MF .deps/libzmq_la-ctx.Tpo -c ctx.cpp  -DDLL_EXPORT -DPIC -o
cc1plus: warnings being treated as errors
In file included from windows.hpp:63:0,
                 from fd.hpp:27,
                 from mailbox.hpp:27,
                 from ctx.hpp:29,
                 from ctx.cpp:24:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/winsock2.h:15:2: error:
Please include winsock2.h before windows.h

Looks like a possible bug with MinGW32 or something very fruity with
preprocessor definitions as I cannot catch where it occurs by changing

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110528/31e78ccc/attachment.htm>

More information about the zeromq-dev mailing list