On release builds I get segmentation fault calling socket.connect(), while on debug builds it works fine:
int main(int argc, char* argv[]) {
zmq::context_t context(1);
zmq::socket_t socket(context, ZMQ_SUB);
socket.setsockopt(ZMQ_SUBSCRIBE, "frame", 5);
socket.connect("tcp://localhost:46461");
return 0;
}