[zeromq-dev] Revisited: Example for building against ZMQ with CMake + UDP Multicast Support
Stephan again
opfer at vs.uni-kassel.de
Wed Sep 26 15:13:45 CEST 2018
Hi,
I asked this question/issue one and a half year ago
(https://lists.zeromq.org/mailman/private/zeromq-dev/2017-January/031309.html).
The difference is that I now would like to use zeromq (draft api)
version 4.2.5 under Ubuntu 18.04.
My minimal (not) working example can be found here:
https://gist.github.com/StephanOpfer/5b9f3f76e6610536078cb9c16072aac9
Compiling it with this command:
g++ Discovery.cpp -lzmq -DZMQ_BUILD_DRAFT_API=1 -o test
produces this:
/tmp/ccUwelWs.o: In function `msg_send(zmq_msg_t*, void*, char
const*, char const*)':
Discovery.cpp:(.text+0x8e): undefined reference to `zmq_msg_set_group'
/tmp/ccUwelWs.o: In function `msg_recv_cmp(zmq_msg_t*, void*, char
const*, char const*)':
Discovery.cpp:(.text+0x148): undefined reference to `zmq_msg_group'
/tmp/ccUwelWs.o: In function `main':
Discovery.cpp:(.text+0x30e): undefined reference to `zmq_leave'
Discovery.cpp:(.text+0x37f): undefined reference to `zmq_join'
Discovery.cpp:(.text+0x3c3): undefined reference to `zmq_join'
Discovery.cpp:(.text+0x407): undefined reference to `zmq_join'
Discovery.cpp:(.text+0x57c): undefined reference to `zmq_join'
Discovery.cpp:(.text+0x668): undefined reference to `zmq_leave'
collect2: error: ld returned 1 exit status
Any help is welcome. :)
Kind Regards
Stephan
More information about the zeromq-dev
mailing list