{"action":"created","issue":{"url":"https://api.github.com/repos/mfontanini/cppkafka/issues/20","repository_url":"https://api.github.com/repos/mfontanini/cppkafka","labels_url":"https://api.github.com/repos/mfontanini/cppkafka/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/mfontanini/cppkafka/issues/20/comments","events_url":"https://api.github.com/repos/mfontanini/cppkafka/issues/20/events","html_url":"https://github.com/mfontanini/cppkafka/issues/20","id":273132368,"number":20,"title":"`undefined reference to *` error on building consumer example","user":{"login":"ahoora08","id":24634145,"avatar_url":"https://avatars3.githubusercontent.com/u/24634145?v=4","gravatar_id":"","url":"https://api.github.com/users/ahoora08","html_url":"https://github.com/ahoora08","followers_url":"https://api.github.com/users/ahoora08/followers","following_url":"https://api.github.com/users/ahoora08/following{/other_user}","gists_url":"https://api.github.com/users/ahoora08/gists{/gist_id}","starred_url":"https://api.github.com/users/ahoora08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahoora08/subscriptions","organizations_url":"https://api.github.com/users/ahoora08/orgs","repos_url":"https://api.github.com/users/ahoora08/repos","events_url":"https://api.github.com/users/ahoora08/events{/privacy}","received_events_url":"https://api.github.com/users/ahoora08/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-11-11T09:21:13Z","updated_at":"2018-04-10T02:02:46Z","closed_at":"2017-11-12T15:04:29Z","author_association":"NONE","body":"Hi,\r\nFirst I installed `librdkafka`  using instruction successfully. After that I installed `cppkafka` using document instruction, in addition command `sudo make install` at the end. So now both `librdkafka` and `cppkafka` are in directories `/usr/local/lib` and `/usr/local/include`. Trying to build `consumer` example code, the IDE(both Clion and Eclipse) resolved including libraries and show hints in using methods, but in building I faced error `undefined reference to` methods and classes. I check directory `/usr/local/include` and it only contains the `.h` files!\r\n\r\nDid I do any steps wrong?"},"comment":{"url":"https://api.github.com/repos/mfontanini/cppkafka/issues/comments/379949842","html_url":"https://github.com/mfontanini/cppkafka/issues/20#issuecomment-379949842","issue_url":"https://api.github.com/repos/mfontanini/cppkafka/issues/20","id":379949842,"user":{"login":"gbxu","id":15939452,"avatar_url":"https://avatars1.githubusercontent.com/u/15939452?v=4","gravatar_id":"","url":"https://api.github.com/users/gbxu","html_url":"https://github.com/gbxu","followers_url":"https://api.github.com/users/gbxu/followers","following_url":"https://api.github.com/users/gbxu/following{/other_user}","gists_url":"https://api.github.com/users/gbxu/gists{/gist_id}","starred_url":"https://api.github.com/users/gbxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbxu/subscriptions","organizations_url":"https://api.github.com/users/gbxu/orgs","repos_url":"https://api.github.com/users/gbxu/repos","events_url":"https://api.github.com/users/gbxu/events{/privacy}","received_events_url":"https://api.github.com/users/gbxu/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T02:02:46Z","updated_at":"2018-04-10T02:02:46Z","author_association":"NONE","body":"@mfontanini  I runned `sudo ldconfig` before. and the `CMakeLists.txt` is as follows: \r\n```\r\ncmake_minimum_required(VERSION 3.10)\r\nproject(test)\r\nset(CMAKE_CXX_STANDARD 11)\r\nadd_executable(test src/main.cpp)\r\n```\r\nThe problem  happens.\r\nI try the steps again and get the same result. It bothers me."}}
{"actor":{"display_login":"gbxu"}}