[zeromq-dev] Example for building against ZMQ with CMake + UDP Multicast Support
Holger Freyther
holger at moiji-mobile.com
Tue Jan 10 23:05:48 CET 2017
> On 10 Jan 2017, at 22:06, Stephan Opfer <opfer at vs.uni-kassel.de> wrote:
>
>
> On 10.01.2017 21:59, Luca Boccassi wrote:
>> Did you install the packages? Because then /usr/local is wrong, if you
>> did a make install before you should do a make uninstall to remove the
>> manually installed files
> I tried both ways. Currently I have the library manually compiled and did make install.
>
> When I install the packages and do make uninstall before, "pkg-config --cflags --libs libzmq" only creates "-DZMQ_BUILD_DRAFT_API=1 -lzmq" and I get the same linker errors doing this: g++ -DZMQ_BUILD_DRAFT_API=1 -lzmq src/Discovery.cpp -o foo
put the library (-lzmq) after the source files on the compile/link line?
More information about the zeromq-dev
mailing list