我安裝了zmq,在usr/local/include、usr/local/lib都有zmq的頭檔案和庫檔案。
如果不使用zmq_poller相關函式,都能正常編譯。
但只要在代碼里添加使用zmq_poller相關函式,都會報:
error: ‘zmq_poller_new’ was not declared in this scope
error: ‘zmq_poller_event_t’ was not declared in this scope
error: ‘zmq_poller_wait_all’ was not declared in this scope
等等
我編譯時使用命令:g++ router.cpp -o router -lzmq
請問各位大神,這種情況該如何解決?
uj5u.com熱心網友回復:
試試加上允許使用zmq draft的宏?轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/123404.html
標籤:C++ 語言
