libzmq icon indicating copy to clipboard operation
libzmq copied to clipboard

Instruction to build libzmq in VS2017

Open basu13 opened this issue 4 years ago • 12 comments

Please help me while building this libzmq in VS2017 These all error i am getting while building

Severity Code Description Project File Line Suppression State Error (active) E0035 #error directive: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined libzmq F:\Projects\Internship\ZeroMQ\libzmq\src\poller.hpp 59 Error (active) E0035 #error directive: None of the ZMQ_POLL_BASED_ON_* macros defined libzmq F:\Projects\Internship\ZeroMQ\libzmq\src\poller.hpp 65 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\client.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\ctx.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\curve_client.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\curve_server.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\curve_mechanism_base.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\dealer.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\devpoll.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\dgram.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\dish.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\gather.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\io_thread.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\io_object.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\kqueue.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C3646 'cond_var': unknown override specifier (compiling source file ........\src\mailbox_safe.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\mailbox_safe.hpp 77 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ........\src\mailbox_safe.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\mailbox_safe.hpp 77 Error C2065 'cond_var': undeclared identifier libzmq f:\projects\internship\zeromq\libzmq\src\mailbox_safe.cpp 84 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE* macros defined (compiling source file ........\src\mechanism_base.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE* macros defined (compiling source file ........\src\mechanism.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C2065 'cond_var': undeclared identifier libzmq f:\projects\internship\zeromq\libzmq\src\mailbox_safe.cpp 109 Error C2789 'rc': an object of const-qualified type must be initialized libzmq f:\projects\internship\zeromq\libzmq\src\mailbox_safe.cpp 109 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE* macros defined (compiling source file ........\src\null_mechanism.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\object.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\pair.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\own.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\plain_client.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\poll.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\plain_server.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\pub.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\proxy.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\radio.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\pull.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\push.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\reaper.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\req.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\rep.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\select.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\scatter.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\router.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\signaler.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\server.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\session_base.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\socket_poller.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\socket_base.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1083 Cannot open source file: '........\src\stream_engine.cpp': No such file or directory libzmq F:\Projects\Internship\ZeroMQ\libzmq\builds\deprecated-msvc\vs2017\libzmq\c1xx 1 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\socks_connecter.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\stream.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\tcp_connecter.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\sub.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\tcp_listener.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\udp_engine.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\xsub.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\xpub.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\zap_client.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\zmq.cpp) libzmq f:\projects\internship\zeromq\libzmq\src\poller.hpp 59 Error LNK1181 cannot open input file 'libzmq.lib' remote_thr F:\Projects\Internship\ZeroMQ\libzmq\builds\deprecated-msvc\vs2017\remote_thr\LINK 1 Error LNK1181 cannot open input file 'libzmq.lib' remote_lat F:\Projects\Internship\ZeroMQ\libzmq\builds\deprecated-msvc\vs2017\remote_lat\LINK 1 Error LNK1181 cannot open input file 'libzmq.lib' inproc_thr F:\Projects\Internship\ZeroMQ\libzmq\builds\deprecated-msvc\vs2017\inproc_thr\LINK 1 Error LNK1181 cannot open input file 'libzmq.lib' local_lat F:\Projects\Internship\ZeroMQ\libzmq\builds\deprecated-msvc\vs2017\local_lat\LINK 1 Error LNK1181 cannot open input file 'libzmq.lib' local_thr F:\Projects\Internship\ZeroMQ\libzmq\builds\deprecated-msvc\vs2017\local_thr\LINK 1 Error LNK1181 cannot open input file 'libzmq.lib' inproc_lat F:\Projects\Internship\ZeroMQ\libzmq\builds\deprecated-msvc\vs2017\inproc_lat\LINK 1

basu13 avatar Jun 21 '20 16:06 basu13

Any news/update on this issue? Have you tried with MinGW/MSYS?

Just downloaded master branch and built this project from source under MinGW on Windows 10 x64.

image

sfhacker avatar Aug 07 '20 23:08 sfhacker

I am also facing the same issue. Building libzmq in VS2017.

Any updates? how to resolve it?

RinkalBhojani avatar Oct 14 '20 07:10 RinkalBhojani

This issue is several months old! Are we STILL having issues?

@RinkalBhojani Can you post here the error messages you are getting?

sfhacker avatar Oct 14 '20 10:10 sfhacker

@sfhacker Below are the errors I am getting,

Severity Code Description Project File Line Suppression State Error (active) E0035 #error directive: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined libzmq D:\libzmq\src\poller.hpp 59 Error (active) E0035 #error directive: None of the ZMQ_POLL_BASED_ON_* macros defined libzmq D:\libzmq\src\poller.hpp 65 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\client.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\ctx.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\curve_client.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\curve_mechanism_base.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\devpoll.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\dealer.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\curve_server.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\dgram.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\dish.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\io_object.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\gather.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\kqueue.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\io_thread.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\mechanism.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C3646 'cond_var': unknown override specifier (compiling source file ........\src\mailbox_safe.cpp) libzmq d:\libzmq\src\mailbox_safe.hpp 77 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ........\src\mailbox_safe.cpp) libzmq d:\libzmq\src\mailbox_safe.hpp 77 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE* macros defined (compiling source file ........\src\mechanism_base.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C2065 'cond_var': undeclared identifier libzmq d:\libzmq\src\mailbox_safe.cpp 84 Error C2065 'cond_var': undeclared identifier libzmq d:\libzmq\src\mailbox_safe.cpp 109 Error C2789 'rc': an object of const-qualified type must be initialized libzmq d:\libzmq\src\mailbox_safe.cpp 109 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE* macros defined (compiling source file ........\src\null_mechanism.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE* macros defined (compiling source file ........\src\own.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\object.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\pair.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\poll.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\plain_server.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\plain_client.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\proxy.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\pull.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\pub.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\push.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\radio.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\reaper.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\req.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\router.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\scatter.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\rep.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\select.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\signaler.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\session_base.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\server.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\socket_base.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\socket_poller.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1083 Cannot open source file: '........\src\stream_engine.cpp': No such file or directory libzmq D:\libzmq\builds\deprecated-msvc\vs2017\libzmq\c1xx 1 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\socks_connecter.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\stream.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\sub.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\tcp_listener.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\tcp_connecter.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\udp_engine.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\xpub.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\zmq.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\xsub.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error C1189 #error: None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined (compiling source file ........\src\zap_client.cpp) libzmq d:\libzmq\src\poller.hpp 59 Error LNK1104 cannot open file 'libzmq.lib' remote_thr D:\libzmq\builds\deprecated-msvc\vs2017\remote_thr\LINK 1 Error LNK1104 cannot open file 'libzmq.lib' local_thr D:\libzmq\builds\deprecated-msvc\vs2017\local_thr\LINK 1 Error LNK1104 cannot open file 'libzmq.lib' inproc_thr D:\libzmq\builds\deprecated-msvc\vs2017\inproc_thr\LINK 1 Error LNK1104 cannot open file 'libzmq.lib' inproc_lat D:\libzmq\builds\deprecated-msvc\vs2017\inproc_lat\LINK 1 Error LNK1104 cannot open file 'libzmq.lib' local_lat D:\libzmq\builds\deprecated-msvc\vs2017\local_lat\LINK 1 Error LNK1104 cannot open file 'libzmq.lib' remote_lat D:\libzmq\builds\deprecated-msvc\vs2017\remote_lat\LINK 1

RinkalBhojani avatar Oct 15 '20 07:10 RinkalBhojani

@RinkalBhojani Have you tried other alternatives?

sfhacker avatar Oct 15 '20 10:10 sfhacker

@sfhacker What are the alternative ways available? Could you please help me understand?

RinkalBhojani avatar Oct 20 '20 06:10 RinkalBhojani

@RinkalBhojani Do you know what 'alternative' means? If not, you can use a dictionary. This issue is several months old! How good are you at troubleshooting issues? Perhaps your environment is broken or ... there is something else going on. It is hard for us to assist you in this situation.

sfhacker avatar Oct 20 '20 11:10 sfhacker

I got the same problem, vs2017 DynRelease win32 on windows 7

donaldlee2008 avatar Dec 21 '20 14:12 donaldlee2008

Are we still having issues with this project? This issue is several months old! @donaldlee2008 Can you post screenshots here showing error messages?

sfhacker avatar Dec 21 '20 16:12 sfhacker

I'm new to ZeroMQ and have a similar error when I try to build with MinGW. Thanks in advance for any help.

\libzmq\builds\mingw32>mingw32-make -f Makefile.mingw32 gcc -c -o ctx.o ../../src/ctx.cpp -Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -I. In file included from ../../src/socket_base.hpp:41, from ../../src/ctx.cpp:43: ../../src/poller.hpp:59:2: error: #error None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined #error None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined ^~~~~ ../../src/poller.hpp:65:2: error: #error None of the ZMQ_POLL_BASED_ON_* macros defined #error None of the ZMQ_POLL_BASED_ON_* macros defined ^~~~~ In file included from ../../src/ctx.cpp:43: ../../src/socket_base.hpp:106:25: error: 'poller_t' has not been declared void start_reaping (poller_t *poller_); ^~~~~~~~ ../../src/socket_base.hpp:321:5: error: 'poller_t' does not name a type; did you mean 'pipes_t'? poller_t *_poller; ^~~~~~~~ pipes_t ../../src/socket_base.hpp:322:5: error: 'poller_t' does not name a type; did you mean 'pipes_t'? poller_t::handle_t _handle; ^~~~~~~~ pipes_t In file included from ../../src/ctx.cpp:44: ../../src/io_thread.hpp:70:5: error: 'poller_t' does not name a type; did you mean 'reaper_t'? poller_t *get_poller () const; ^~~~~~~~ reaper_t ../../src/io_thread.hpp:83:5: error: 'poller_t' does not name a type; did you mean 'reaper_t'? poller_t::handle_t _mailbox_handle; ^~~~~~~~ reaper_t ../../src/io_thread.hpp:86:5: error: 'poller_t' does not name a type; did you mean 'reaper_t'? poller_t *_poller; ^~~~~~~~ reaper_t In file included from ../../src/ctx.cpp:45: ../../src/reaper.hpp:69:5: error: 'poller_t' does not name a type; did you mean 'reaper_t'? poller_t::handle_t mailbox_handle; ^~~~~~~~ reaper_t ../../src/reaper.hpp:72:5: error: 'poller_t' does not name a type; did you mean 'reaper_t'? poller_t *poller; ^~~~~~~~ reaper_t ../../src/ctx.cpp: In function 'int clipped_maxsocket(int)': ../../src/ctx.cpp:68:32: error: 'zmq::poller_t' has not been declared if (max_requested >= zmq::poller_t::max_fds () ^~~~~~~~ ../../src/ctx.cpp:69:17: error: 'zmq::poller_t' has not been declared && zmq::poller_t::max_fds () != -1) ^~~~~~~~ ../../src/ctx.cpp:71:31: error: 'zmq::poller_t' has not been declared max_requested = zmq::poller_t::max_fds () - 1; ^~~~~~~~ mingw32-make: *** [Makefile.mingw32:33: ctx.o] Error 1

yaakob-luoma avatar Jan 27 '23 20:01 yaakob-luoma

This open issue is VERY VERY OLD. Are we STILL facing issues? I could try building master branch again. Please, let me know.

sfhacker avatar Jan 27 '23 23:01 sfhacker

yes still facing the issue.

am i missing something before compiling liblmq.dll ???

gcc -c -o ctx.o ../../src/ctx.cpp -Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -I. In file included from ../../src/socket_base.hpp:41:0, from ../../src/ctx.cpp:43: ../../src/poller.hpp:59:2: error: #error None of the ZMQ_IOTHREAD_POLLER_USE_* macros defined ../../src/poller.hpp:65:2: error: #error None of the ZMQ_POLL_BASED_ON_* macros defined In file included from ../../src/ctx.cpp:43:0: ../../src/socket_base.hpp:106:25: error: 'poller_t' has not been declared ../../src/socket_base.hpp:321:5: error: 'poller_t' does not name a type ../../src/socket_base.hpp:322:5: error: 'poller_t' does not name a type In file included from ../../src/ctx.cpp:44:0: ../../src/io_thread.hpp:70:5: error: 'poller_t' does not name a type ../../src/io_thread.hpp:83:5: error: 'poller_t' does not name a type ../../src/io_thread.hpp:86:5: error: 'poller_t' does not name a type In file included from ../../src/ctx.cpp:45:0: ../../src/reaper.hpp:69:5: error: 'poller_t' does not name a type ../../src/reaper.hpp:72:5: error: 'poller_t' does not name a type ../../src/ctx.cpp: In function 'int clipped_maxsocket(int)': ../../src/ctx.cpp:68:32: error: 'zmq::poller_t' has not been declared ../../src/ctx.cpp:69:17: error: 'zmq::poller_t' has not been declared ../../src/ctx.cpp:71:31: error: 'zmq::poller_t' has not been declared mingw32-make: *** [ctx.o] Error 1 @sfhacker @donaldlee2008 @basu13

sreenivasulux avatar Mar 14 '23 14:03 sreenivasulux