Home > Back-end >  ZMQ installed, as long as you use zmq_poller appears the was not declared in this scope
ZMQ installed, as long as you use zmq_poller appears the was not declared in this scope

Time:10-10

I installed the ZMQ, in usr/local/include, usr/local/lib has ZMQ header files and libraries,
If you don't use zmq_poller correlation function, can be normal compilation,
But as long as in the code to add use zmq_poller correlation function, will quote:
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
Etc.
When I compile using the command: g + + router. CPP - o the router - LZMQ
Excuse me each great god, and how to solve this problem?

CodePudding user response:

Try and allows the use of ZMQ draft macro?
  • Related