[zeromq-dev] Almost successful with trunk, cmake and MinGW on Windows

Pavol Malosek malosek at fastmq.com
Tue Dec 9 20:40:28 CET 2008

Hello Holger,

We were not so far from compiling 0MQ on MinGW using autotools,
but we have been busy with 0.4 and we did not have time to finish it.

Now when 0.4 is released I would guess that MinGW will appear in our
"supported platforms" list soon:)
We'll  surely appreciate it if you are posting your MinGW steps into the


----- Original Message -----
From: Holger Hoffstätte <holger at wizards.de>
To: <zeromq-dev at lists.zeromq.org>
Sent: Tuesday, December 09, 2008 6:45 PM
Subject: [zeromq-dev] Almost successful with trunk,cmake and MinGW on

> Congratulations to the 0.4 release. I took this as opportunity to try to
> build the latest trunk on, of all things, Windows with cmake and MinGW
> (latest 4.3.2 edition from http://www.tdragon.net/recentgcc/). This latest
> gcc supports all sorts of goodies (even OpenMP) and is a great alternative
> to MSVCC for cross-platform development.
> Much to my surprise the cmake process worked more or less out of the box -
> very cool! I generated Windowsish-but-Unixy gnumakefiles by passing
> -G"MinGW Makefiles" to cmake and that worked right away.
> Since MinGW is still gcc, the build got a bit confused after that but
> adjusting a few typedefs and defining the correct windows version in
> platform.hpp did the trick; let me know if this is of interest and I'll
> outline the steps in a JIRA.
> The biggest and so far unsolved stumbling block was the use of a _TRUNCATE
> macro/definition (?) which is apparently a MS CRT specific way of
> protecting snprintf against buffer overruns (maybe related to ZMQ-128?). I
> tried to fake it and that let the build proceed, giving me the libzmq.dll
> and the zmq_server. Unfortunately it crashed immediately, but that might
> well be due to the _TRUNCATE buffer handling. If someone sends me the
> definition for _TRUNCATE I can try again.
> Just thought this might be of interest. :)
> Holger
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list