{"action":"created","issue":{"url":"https://api.github.com/repos/edenhill/librdkafka/issues/95","repository_url":"https://api.github.com/repos/edenhill/librdkafka","labels_url":"https://api.github.com/repos/edenhill/librdkafka/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/edenhill/librdkafka/issues/95/comments","events_url":"https://api.github.com/repos/edenhill/librdkafka/issues/95/events","html_url":"https://github.com/edenhill/librdkafka/issues/95","id":30759112,"number":95,"title":"dynamic linking doesn't work","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars0.githubusercontent.com/u/10137?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2014-04-03T09:19:51Z","updated_at":"2017-05-15T13:23:27Z","closed_at":"2014-04-03T13:18:17Z","body":"Hello,\n\nIf I try to use dynamic link I always get undefined references.\n\nI installed the libraries in /usr/local/lib ane try to compile rdkafka_example.c using\n\ngcc -I/usr/local/include/librdkafka -L/usr/local/lib -lrdkafka rdkafka_example.c\n\nBut I get link errors\n\n/tmp/cczYMsjA.o: In function `rd_kafka_message_errstr':\nrdkafka_example.c:(.text+0x31): undefined reference to`rd_kafka_err2str'\n/tmp/cczYMsjA.o: In function `logger':\nrdkafka_example.c:(.text+0x1f0): undefined reference to`rd_kafka_name'\n/tmp/cczYMsjA.o: In function `msg_delivered':\nrdkafka_example.c:(.text+0x263): undefined reference to`rd_kafka_err2str'\n/tmp/cczYMsjA.o: In function `msg_consume':\nrdkafka_example.c:(.text+0x2e7): undefined reference to`rd_kafka_topic_name'\nrdkafka_example.c:(.text+0x357): undefined reference to `rd_kafka_topic_name'\n/tmp/cczYMsjA.o: In function`metadata_print':\nrdkafka_example.c:(.text+0x5ba): undefined reference to `rd_kafka_err2str'\nrdkafka_example.c:(.text+0x6fc): undefined reference to`rd_kafka_err2str'\n/tmp/cczYMsjA.o: In function `sig_usr1':\nrdkafka_example.c:(.text+0x765): undefined reference to`rd_kafka_dump'\n/tmp/cczYMsjA.o: In function `main':\nrdkafka_example.c:(.text+0x7ea): undefined reference to`rd_kafka_conf_new'\nrdkafka_example.c:(.text+0x7f3): undefined reference to `rd_kafka_topic_conf_new'\nrdkafka_example.c:(.text+0x887): undefined reference to`rd_kafka_conf_set'\n.....\n"},"comment":{"url":"https://api.github.com/repos/edenhill/librdkafka/issues/comments/301473353","html_url":"https://github.com/edenhill/librdkafka/issues/95#issuecomment-301473353","issue_url":"https://api.github.com/repos/edenhill/librdkafka/issues/95","id":301473353,"user":{"login":"edenhill","id":524990,"avatar_url":"https://avatars3.githubusercontent.com/u/524990?v=3","gravatar_id":"","url":"https://api.github.com/users/edenhill","html_url":"https://github.com/edenhill","followers_url":"https://api.github.com/users/edenhill/followers","following_url":"https://api.github.com/users/edenhill/following{/other_user}","gists_url":"https://api.github.com/users/edenhill/gists{/gist_id}","starred_url":"https://api.github.com/users/edenhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenhill/subscriptions","organizations_url":"https://api.github.com/users/edenhill/orgs","repos_url":"https://api.github.com/users/edenhill/repos","events_url":"https://api.github.com/users/edenhill/events{/privacy}","received_events_url":"https://api.github.com/users/edenhill/received_events","type":"User","site_admin":false},"created_at":"2017-05-15T13:23:27Z","updated_at":"2017-05-15T13:23:27Z","body":"If you've installed librdkafka to a non-standard location you'll also need to provide the include path to the compiler, e.g.:\r\n\r\n`gcc -O3 -Wall -I/home/gateway/kafkalib/include/librdkafka kafkaexample.c -lrdkafka -lz -lpthread -lrt`\r\n"}}
{"actor":{"display_login":"edenhill"}}