[zeromq-dev] x64 Mingw32 build errors

Steven McCoy steven.mccoy at miru.hk
Sat May 28 01:01:57 CEST 2011

On 28 May 2011 06:56, Steven McCoy <steven.mccoy at miru.hk> wrote:

> 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
> .libs/libzmq_la-ctx.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:
> #warning
> 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
> windows.h.
Blame here, windows.hpp line 27:

// The purpose of this header file is to turn on only the items actually
// on the windows platform.

#define _WINSOCKAPI_

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

More information about the zeromq-dev mailing list