[C++ binding] invalid conversion from 'void*' to 'zmq_msg_t*'

20 views
Skip to first unread message

Em Sal

unread,
Nov 12, 2015, 11:51:06 PM11/12/15
to zeromq
Hi,

I've been experimenting with the C++ binding, and I downloaded my project from one computer to the other.

On the first computer, my project compiles fine, while on the second computer, I get the following error:

/usr/local/include/zmq.h:211:16: note:   initializing argument 1 of int zmq_msg_recv(zmq_msg_t*, void*, int)’
 ZMQ_EXPORT
int zmq_msg_recv (zmq_msg_t *msg, void *s, int flags);


lib
/cppzmq/zmq.hpp:683:50: error: invalid conversion from void*’ to zmq_msg_t*’ [-fpermissive]
                 rc
= zmq_msg_recv (s, &addrMsg, 0);


This is my full error log.

Thanks very much in advance for the help!

Reply all
Reply to author
Forward
0 new messages