{"action":"created","issue":{"url":"https://api.github.com/repos/adobkin/libcapn/issues/14","labels_url":"https://api.github.com/repos/adobkin/libcapn/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/adobkin/libcapn/issues/14/comments","events_url":"https://api.github.com/repos/adobkin/libcapn/issues/14/events","html_url":"https://github.com/adobkin/libcapn/issues/14","id":106914687,"number":14,"title":"undefined reference to `apn_init' ON Ubuntue","user":{"login":"gfxcc","id":10409097,"avatar_url":"https://avatars.githubusercontent.com/u/10409097?v=3","gravatar_id":"","url":"https://api.github.com/users/gfxcc","html_url":"https://github.com/gfxcc","followers_url":"https://api.github.com/users/gfxcc/followers","following_url":"https://api.github.com/users/gfxcc/following{/other_user}","gists_url":"https://api.github.com/users/gfxcc/gists{/gist_id}","starred_url":"https://api.github.com/users/gfxcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfxcc/subscriptions","organizations_url":"https://api.github.com/users/gfxcc/orgs","repos_url":"https://api.github.com/users/gfxcc/repos","events_url":"https://api.github.com/users/gfxcc/events{/privacy}","received_events_url":"https://api.github.com/users/gfxcc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-17T05:30:12Z","updated_at":"2015-09-17T10:44:07Z","closed_at":null,"body":"This lib can run on my Mac OS 10.10\r\nBut when I test same code on Ubuntu, It goes wrong.\r\nI followed steps http://libcapn.org/doc/0.9.0/html/install.html\r\nI have spend all my night on this.\r\n\r\n```\r\n$ gcc /usr/local/lib/capn/libcapn.so t.c\r\n/tmp/ccO1OvrG.o: In function `main':\r\nt.c:(.text+0x65): undefined reference to `apn_init'\r\nt.c:(.text+0x75): undefined reference to `apn_error_code'\r\nt.c:(.text+0x88): undefined reference to `apn_error_message'\r\nt.c:(.text+0xa8): undefined reference to `apn_error_free'\r\nt.c:(.text+0xc8): undefined reference to `apn_set_mode'\r\nt.c:(.text+0xe0): undefined reference to `apn_add_token'\r\nt.c:(.text+0xf3): undefined reference to `apn_payload_init'\r\nt.c:(.text+0x103): undefined reference to `apn_error_code'\r\nt.c:(.text+0x116): undefined reference to `apn_error_message'\r\nt.c:(.text+0x136): undefined reference to `apn_free'\r\nt.c:(.text+0x142): undefined reference to `apn_error_free'\r\nt.c:(.text+0x16e): undefined reference to `apn_payload_set_badge'\r\nt.c:(.text+0x186): undefined reference to `apn_payload_set_body'\r\nt.c:(.text+0x1a3): undefined reference to `apn_payload_set_expiry'\r\nt.c:(.text+0x1b9): undefined reference to `apn_payload_set_sound'\r\nt.c:(.text+0x1d4): undefined reference to `apn_payload_add_custom_property_integer'\r\nt.c:(.text+0x1e7): undefined reference to `apn_connect'\r\nt.c:(.text+0x1f7): undefined reference to `apn_error_code'\r\nt.c:(.text+0x20a): undefined reference to `apn_error_message'\r\nt.c:(.text+0x22a): undefined reference to `apn_payload_free'\r\nt.c:(.text+0x236): undefined reference to `apn_free'\r\nt.c:(.text+0x242): undefined reference to `apn_error_free'\r\nt.c:(.text+0x263): undefined reference to `apn_send'\r\nt.c:(.text+0x277): undefined reference to `apn_error_code'\r\nt.c:(.text+0x28a): undefined reference to `apn_error_message'\r\nt.c:(.text+0x2aa): undefined reference to `apn_error_code'\r\nt.c:(.text+0x2c0): undefined reference to `apn_error_invalid_token'\r\nt.c:(.text+0x2de): undefined reference to `apn_close'\r\nt.c:(.text+0x2ea): undefined reference to `apn_payload_free'\r\nt.c:(.text+0x2f6): undefined reference to `apn_free'\r\nt.c:(.text+0x302): undefined reference to `apn_error_free'\r\nt.c:(.text+0x315): undefined reference to `apn_close'\r\nt.c:(.text+0x321): undefined reference to `apn_payload_free'\r\nt.c:(.text+0x32d): undefined reference to `apn_free'\r\ncollect2: error: ld returned 1 exit status\r\n```"},"comment":{"url":"https://api.github.com/repos/adobkin/libcapn/issues/comments/141040536","html_url":"https://github.com/adobkin/libcapn/issues/14#issuecomment-141040536","issue_url":"https://api.github.com/repos/adobkin/libcapn/issues/14","id":141040536,"user":{"login":"adobkin","id":705416,"avatar_url":"https://avatars.githubusercontent.com/u/705416?v=3","gravatar_id":"","url":"https://api.github.com/users/adobkin","html_url":"https://github.com/adobkin","followers_url":"https://api.github.com/users/adobkin/followers","following_url":"https://api.github.com/users/adobkin/following{/other_user}","gists_url":"https://api.github.com/users/adobkin/gists{/gist_id}","starred_url":"https://api.github.com/users/adobkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adobkin/subscriptions","organizations_url":"https://api.github.com/users/adobkin/orgs","repos_url":"https://api.github.com/users/adobkin/repos","events_url":"https://api.github.com/users/adobkin/events{/privacy}","received_events_url":"https://api.github.com/users/adobkin/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T10:44:07Z","updated_at":"2015-09-17T10:44:07Z","body":"Without seeing a code it is very difficult to speak about a possible problem. The current version also doesn't support logging. I would recommend to you to try version 2.0.0, it support logging and working faster.  Look it https://github.com/adobkin/libcapn/tree/experimental. This branch is EXPERIMENTAL and it not compatible to 1.0. Experimental branch will be merged with master soon"}}