OK, I'm stupid, I forgot to initialize zsys

zsys_init();

Ju

________________________________
From: Juergen Gnoss <jgn...@hotmail.com>
Sent: Saturday, June 23, 2018 7:57 AM
To: ZeroMQ development list
Subject: no output from zsys_info


Somebody has an idea why zsys_info doesn’t give any output?


#include <stdio.h>
#include <stdlib.h>
#include <czmq.h>

int main(int argc, char **argv) {
    int zmq_major, zmq_minor, zmq_patch;
    zmq_version (&zmq_major, &zmq_minor, &zmq_patch);

    zsys_info("with zsys_info : Current ØMQ version is %d.%d.%d\n", zmq_major, 
zmq_minor, zmq_patch);
    fprintf(stdout, "with fprintf   : Current ØMQ version is %d.%d.%d\n", 
zmq_major, zmq_minor, zmq_patch);

    return EXIT_SUCCESS;
}


output


mymachine$ ./myProg
with fprintf   : Current ØMQ version is 4.3.1
mymachine$


used system and versions

Linux mymachine 4.4.0-101-generic #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017 
x86_64 x86_64 x86_64 GNU/Linux

libzmq from master


>From https://github.com/zeromq/libzmq
   0897469..edec224  master     -> origin/master
Updating 0897469..edec224
...


czmq from master


>From https://github.com/zeromq/czmq
   975d917..63c27c8  master     -> origin/master
Updating 975d917..63c27c8
...


thanks

Ju
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to