Hello,

I am attempting to compile czmq with a cross-compiler (gcc 4.8.0), and I am
getting a bunch of errors like this:

make[3]: Entering directory `/home/pnoffke/QT_Linux/compile/czmq-1.4.1/src'
/bin/sh ../libtool --tag=CC --mode=compile x86_64-quadtech-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I../include -pedantic -Werror -Wall -D_GNU_SOURCE
-DLINUX -D_REENTRANT -D_THREAD_SAFE -I/home/pnoffke/QT_Linux/tools/include
-g -O2 -MT zbeacon.lo -MD -MP -MF .deps/zbeacon.Tpo -c -o zbeacon.lo
zbeacon.c
libtool: compile: x86_64-quadtech-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I../include -pedantic -Werror -Wall -D_GNU_SOURCE -DLINUX -D_REENTRANT
-D_THREAD_SAFE -I/home/pnoffke/QT_Linux/tools/include -g -O2 -MT zbeacon.lo
-MD -MP -MF .deps/zbeacon.Tpo -c zbeacon.c -fPIC -DPIC -o .libs/zbeacon.o
In file included from zbeacon.c:43:0:
../include/czmq.h:30:1: error: C++ style comments are not allowed in ISO
C90 [-Werror]
// Set up environment for the application
^

There are also errors like the following:

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 ();
^

I can change the compiler flags to not include -Werror (or attempt to patch
the code), but have these already been addressed in github?

Thanks,
Patrick
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to