[zeromq-dev] help mdbroker.c (#include "czmq.h")

Pieter Hintjens ph at imatix.com
Tue May 17 23:17:56 CEST 2011


Hi Yuri,

Yes, you need the czmq binding from czmq.zeromq.org. All the more
complex C examples in the Guide use this binding.

> I tried to install czmq (High-level C Binding for ØMQ) but the 'make' I get the following errors:
> zsocket.c: In function ‘zsocket_type_str’:
> zsocket.c:116: error: ‘ZMQ_XSUB’ undeclared (first use in this function)
> zsocket.c:116: error: (Each undeclared identifier is reported only once
> zsocket.c:116: error: for each function it appears in.)
> make[1]: *** [zsocket.lo] Error 1

I'd guess you're using an old version of 0MQ. What version are you
using? I'll make czmq check and report the error at build time.

Install libzmq 2.1.7, then czmq, and then the Guide examples will work properly.

-Pieter



More information about the zeromq-dev mailing list