Closed nguyenvandu083 closed 9 years ago
I'm not sure where this issue come from. However, it looks like you are doing something wrong: zmq.hpp
(which is from the cppzmq project) is not used by zmqpp. You shouldn't include zmq.hpp
, instead include zmqpp.hpp
.
I have problem in this function in zmq.hpp when compiling project:
inline int poll(std::vector const& items, long timeout = -1)
{
return poll(items.data(), items.size(), timeout); std::vector a;
}
The error is:
error C2039: 'data' : is not a member of 'std::vector<_Ty>' 1> with 1> [ 1> _Ty=zmq_pollitem_t 1> ] 1>f:\zeromq 4.0.4\include\zmq.hpp(153) : error C2133: 'a' : unknown size 1>f:\zeromq 4.0.4\include\zmq.hpp(153) : error C2512: 'std::vector' : no appropriate default constructor available
Please help!