[zeromq-dev] czmq compilation failure (-Werror)
Steven McCoy
steven.mccoy at miru.hk
Tue Sep 10 22:56:59 CEST 2013
On 10 September 2013 16:20, Patrick Noffke <patrick.noffke at gmail.com> wrote:
> I am attempting to compile czmq with a cross-compiler (gcc 4.8.0), and I
> am getting a bunch of errors like this:
>
> zbeacon.c: In function 'zbeacon_publish':
> zbeacon.c:176:5: error: ISO C90 forbids mixed declarations and code
> [-Werror=pedantic]
> zmsg_t *msg = zmsg_new ();
>
>
As per the error message and this RFC:
http://rfc.zeromq.org/spec:21
Use a C99 compiler for CZMQ. With GCC this is usually with a flag -std=gnu99
or -std=c99.
--
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130910/988effb0/attachment.htm>
More information about the zeromq-dev
mailing list