我正在为我的应用程序使用 zeromq api,并且有以下指示的链接问题。我已经在我的 ubuntu 12.10 系统中安装了 zeromq 和 czmq tar 球,并验证了 /usr/local/include 下是否存在必要的头文件(例如 zmq.h)。你能告诉我为什么我会遇到这些链接问题吗?什么是可能的解决方案。我还安装了 zmq c++ 绑定(zmq.hpp)。
/XXXX.cpp:92: undefined reference to `zmq_poll'
CMakeFiles/dummy.dir/__/xxx_api/TheQueue.cpp.o: In function`zmq::error_t::error_t()':
/usr/local/include/zmq.hpp:76: undefined reference to `zmq_errno'
CMakeFiles/dummy.dir/__/xxx_api/TheQueue.cpp.o: In function `zmq::error_t::what() const':
/usr/local/include/zmq.hpp:80: undefined reference to `zmq_strerror'
CMakeFiles/dummy.dir/__/xxx/TheQueue.cpp.o: In function`zmq::context_t::context_t(int)':
/usr/local/include/zmq.hpp:241: undefined reference to `zmq_init'
CMakeFiles/dummy.dir/__/control_api/TheQueue.cpp.o: In function `zmq::context_t::close()':
/usr/local/include/zmq.hpp:267: undefined reference to `zmq_term'
CMakeFiles/dummy.dir/__/xxx_api/TheQueue.cpp.o: In function `zmq::socket_t::socket_t(zmq::context_t&, int)':
collect2: error: ld returned 1 exit status
make[2]: *** [/xxx/build_output/dummy] Error 1
make[1]: *** [/xxx/CMakeFiles/dummy.dir/all] Error 2