[zeromq-dev] Example for building against ZMQ with CMake + UDP Multicast Support

Luca Boccassi luca.boccassi at gmail.com
Tue Jan 10 22:20:22 CET 2017

On 10 January 2017 at 21:16, Stephan Opfer <opfer at vs.uni-kassel.de> wrote:
> On 10.01.2017 22:10, Luca Boccassi wrote:
>> Can you share the source of discovery.ccp in a gitst/pastebin, or
>> another minimal example that reproduces the problem?
> Yes no problem: Discovery.cpp is basically copy past of
> https://github.com/zeromq/libzmq/blob/master/tests/test_radio_dish.cpp but I
> made some changes:
> https://gist.github.com/StephanOpfer/df1f589c69da6c2e264bddbd9afe730c

luca at luca-desktop:/tmp$ apt-cache policy libzmq3-dev
  Installed: 1483950852.598befc
  Candidate: 1483950852.598befc
  Version table:
 *** 1483950852.598befc 0
        500 http://download.opensuse.org/repositories/home:/zeromq:/git-draft/Debian_8.0/
./ Packages
        100 /var/lib/dpkg/status
     4.2.1-2 0
        103 http://httpredir.debian.org/debian/ sid/main amd64 Packages
     4.2.0-2 0
        104 http://httpredir.debian.org/debian/ stretch/main amd64 Packages
     4.0.5+dfsg-2+deb8u1 0
        500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages
        500 http://security.debian.org/ jessie/updates/main amd64 Packages
luca at luca-desktop:/tmp$ g++ `pkg-config --libs --cflags libzmq`
Discovery.cpp -o test
luca at luca-desktop:/tmp$ ./test

Builds just fine (binary runs and never exits not sure if that's
intended). I am honestly not sure why your linker is being picky. This
is on Debian 8 with gcc 4.9.2

More information about the zeromq-dev mailing list