{"action":"created","issue":{"url":"https://api.github.com/repos/zeromq/libzmq/issues/2048","repository_url":"https://api.github.com/repos/zeromq/libzmq","labels_url":"https://api.github.com/repos/zeromq/libzmq/issues/2048/labels{/name}","comments_url":"https://api.github.com/repos/zeromq/libzmq/issues/2048/comments","events_url":"https://api.github.com/repos/zeromq/libzmq/issues/2048/events","html_url":"https://github.com/zeromq/libzmq/issues/2048","id":161780178,"number":2048,"title":"ZMQ_SERVER and ZMQ_CLIENT was not declared in this scope","user":{"login":"rhymerjr","id":20098067,"avatar_url":"https://avatars.githubusercontent.com/u/20098067?v=3","gravatar_id":"","url":"https://api.github.com/users/rhymerjr","html_url":"https://github.com/rhymerjr","followers_url":"https://api.github.com/users/rhymerjr/followers","following_url":"https://api.github.com/users/rhymerjr/following{/other_user}","gists_url":"https://api.github.com/users/rhymerjr/gists{/gist_id}","starred_url":"https://api.github.com/users/rhymerjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhymerjr/subscriptions","organizations_url":"https://api.github.com/users/rhymerjr/orgs","repos_url":"https://api.github.com/users/rhymerjr/repos","events_url":"https://api.github.com/users/rhymerjr/events{/privacy}","received_events_url":"https://api.github.com/users/rhymerjr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-22T20:38:40Z","updated_at":"2016-06-22T22:19:49Z","closed_at":null,"body":"I see this on my Debian 8!\r\nCompiled from development master:\r\ng++ (Debian 4.9.2-10) 4.9.2\r\nautomake (GNU automake) 1.14.1\r\nautoconf (GNU Autoconf) 2.69\r\n"},"comment":{"url":"https://api.github.com/repos/zeromq/libzmq/issues/comments/227895013","html_url":"https://github.com/zeromq/libzmq/issues/2048#issuecomment-227895013","issue_url":"https://api.github.com/repos/zeromq/libzmq/issues/2048","id":227895013,"user":{"login":"rhymerjr","id":20098067,"avatar_url":"https://avatars.githubusercontent.com/u/20098067?v=3","gravatar_id":"","url":"https://api.github.com/users/rhymerjr","html_url":"https://github.com/rhymerjr","followers_url":"https://api.github.com/users/rhymerjr/followers","following_url":"https://api.github.com/users/rhymerjr/following{/other_user}","gists_url":"https://api.github.com/users/rhymerjr/gists{/gist_id}","starred_url":"https://api.github.com/users/rhymerjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhymerjr/subscriptions","organizations_url":"https://api.github.com/users/rhymerjr/orgs","repos_url":"https://api.github.com/users/rhymerjr/repos","events_url":"https://api.github.com/users/rhymerjr/events{/privacy}","received_events_url":"https://api.github.com/users/rhymerjr/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T22:19:49Z","updated_at":"2016-06-22T22:19:49Z","body":"Yes I got it from git! I did:\r\ngit clone https://github.com/zeromq/libzmq\r\n\r\n\r\nMy test code is:\r\n\r\n#include <iostream>\r\n#include <string>\r\n#include <zmq.h>\r\n#include <string.h>\r\n#include <stdio.h>\r\n#include <unistd.h>\r\n#include <signal.h>\r\n\r\n#include \"proto_MCP.pb.h\"\r\n#include <google/protobuf/descriptor.h>\r\n#include <google/protobuf/dynamic_message.h>\r\n#include <google/protobuf/io/coded_stream.h>\r\n#include <google/protobuf/io/zero_copy_stream_impl.h>\r\n#include <google/protobuf/stubs/common.h>\r\n\r\nint main (void)\r\n{\r\n    GOOGLE_PROTOBUF_VERIFY_VERSION;\r\n\r\n    void *context = zmq_ctx_new ();\r\n    void *client = zmq_socket (context, ZMQ_CLIENT);\r\n   ...\r\n   ...\r\n\r\nThe error message comes at funtion zmq_socket()...\r\nNow I see that I got the same error for the function zmq_msg_set_routing_id() \r\n\r\nError message is:\r\n\r\nclient.cpp: In function ‘int main()’:\r\nclient.cpp:20:41: error: ‘ZMQ_CLIENT’ was not declared in this scope\r\n     void *client = zmq_socket (context, ZMQ_CLIENT);\r\n                                         ^\r\nclient.cpp:137:51: error: ‘zmq_msg_set_routing_id’ was not declared in this scope\r\n           zmq_msg_set_routing_id (&msg, routing_id);\r\n\r\n\r\nMy compile command is:\r\ng++ -g -lzmq -lprotobuf -std=c++0x client.cpp  proto_MCP.pb.cc -o client\r\n\r\n"}}
{"actor":{"display_login":"rhymerjr"}}