[zeromq-dev] How to build with draft features?
Heungsub Lee
sub at subl.ee
Mon Apr 3 01:53:45 CEST 2017
Thank you Loca for the answer.
Your assumptions are all true but I'm not familiar with gcc or pkg-config.
I tried to use pkg_config instead as you said. But it doesn't produce
`-Wl,-rpath` option so I couldn't use the draft API:
$ echo $(PKG_CONFIG_PATH=local/lib/pkgconfig pkg-config --cflags --libs
libzmq)
-DZMQ_BUILD_DRAFT_API=1 -I/home/sub/local/include -L/home/sub/local/lib
-lzmq
$ gcc tmp.c $(PKG_CONFIG_PATH=local/lib/pkgconfig pkg-config --cflags
--libs libzmq) && ./a.out
NO DRAFT
./a.out: symbol lookup error: ./a.out: undefined symbol: zmq_join
What am I wrong?
Regards,
Heungsub
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20170403/ae637a27/attachment.htm>
More information about the zeromq-dev
mailing list