我正在尝试编译 zmq.org(即 github.com/imatix/zguide.git)提供的 ZMQ C++ 源代码示例。我的操作系统是 xubuntu,我正确安装了 ZMQ 先决条件,即 libtool、autoconf、automake 和 uuid-dev 包。我也安装了 czmq。ZMQ 本身的编译和链接很好,并且库位于 /usr/local/bin 下。尽管如此,我还是遇到了编译错误。谷歌搜索没有多大帮助,我想知道是否有人知道这些错误的快速解决方案,它源于缺少的头文件 zmq.hpp。提前致谢。
$./build all
hwclient.cpp
hwclient.cpp:6:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
hwserver.cpp
hwserver.cpp:6:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
identity.cpp
identity.cpp:7:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
lbbroker.cpp
In file included from lbbroker.cpp:7:0:
zhelpers.hpp:29:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
lpclient.cpp
In file included from lpclient.cpp:6:0:
zhelpers.hpp:29:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
lpserver.cpp
In file included from lpserver.cpp:8:0:
zhelpers.hpp:29:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
mdbroker.cpp
In file included from zmsg.hpp:35:0,
from mdbroker.cpp:7:
zhelpers.hpp:29:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
mdclient.cpp
……