[zeromq-dev] [ zeromq-dev] C binding DLL for ROOT/CINT

Armin Steinhoff armin at steinhoff.de
Wed May 5 20:36:06 CEST 2010


Martin Sustrik wrote:
> Armin,
>> I have completed the generation of a DLL of the C bindings for  
>> ROOT/CINT -- a C/C++ interpreter -- ( http://root.cern.ch )
>> Interested ?
> Intersting. Did it involve changes in the codebase or is it just an 
> alternate build system?

No changes of the codebase ... you have just to link against  libzmq.so .

To build the zmq extension you must adapt the include file zmq.h a 
little bit.
The adaption of zmq.h for the C++ bindings  could be a little bit  more 
difficult  ...

However ... the build process is at the end a  2-liner  !!   (makecint  
+ make  make command)

>> PS: tested on LINUX and QNX
> Btw, how does the QNX port do? Does it work out of the box?

After the porting steps below it works out of the box:

- CC=qcc CXX=QCC configure --with-c --with-perf   .... if only C-bindings are requested

- then add to platform.hpp:

                #define rpl_malloc malloc
                #define ZMQ_FORCE_SELECT 1

But the performance test shows not so brilliant results ...



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100505/54cbad19/attachment.htm>

More information about the zeromq-dev mailing list