我想編譯zmq.org提供的ZMQ C++源代碼示例(即github.com/imatix/zguide.git)。我的操作系統是xubuntu,並且我正確安裝了libtool,autoconf,automake和uuid-dev軟件包等ZMQ先決條件。我也安裝了czmq。編譯和鏈接ZMQ本身很好,libs正確地位於/ usr/local/bin下。不過,我收到了編譯錯誤。谷歌搜索沒有什麼幫助,我不知道是否有人知道這些錯誤的快速解決方案,這些錯誤源自缺少的頭文件zmq.hpp。提前致謝。ZMQ C++示例的編譯問題
$./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
......