{"action":"created","issue":{"url":"https://api.github.com/repos/arpg/Node/issues/19","labels_url":"https://api.github.com/repos/arpg/Node/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/arpg/Node/issues/19/comments","events_url":"https://api.github.com/repos/arpg/Node/issues/19/events","html_url":"https://github.com/arpg/Node/issues/19","id":71606694,"number":19,"title":"Example missing pthread linkage in cmake","user":{"login":"Algomorph","id":1050606,"avatar_url":"https://avatars.githubusercontent.com/u/1050606?v=3","gravatar_id":"","url":"https://api.github.com/users/Algomorph","html_url":"https://github.com/Algomorph","followers_url":"https://api.github.com/users/Algomorph/followers","following_url":"https://api.github.com/users/Algomorph/following{/other_user}","gists_url":"https://api.github.com/users/Algomorph/gists{/gist_id}","starred_url":"https://api.github.com/users/Algomorph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Algomorph/subscriptions","organizations_url":"https://api.github.com/users/Algomorph/orgs","repos_url":"https://api.github.com/users/Algomorph/repos","events_url":"https://api.github.com/users/Algomorph/events{/privacy}","received_events_url":"https://api.github.com/users/Algomorph/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-28T14:32:50Z","updated_at":"2015-04-28T16:12:14Z","closed_at":null,"body":"I'm not sure exactly what should be done, i.e. whether find_package(Threads) needs to be called somewhere in the CMakeLists of the Node or of the examples, but pthreads were missing for me on Ubuntu for the Node/examples.\r\nI just added pthread to the linked for the examples, now it seems to build fine:\r\n`target_link_libraries( NodeExample ${NODE_LIBRARIES} pthread)`\r\n\r\nBefore, I got: `undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'`"},"comment":{"url":"https://api.github.com/repos/arpg/Node/issues/comments/97122990","html_url":"https://github.com/arpg/Node/issues/19#issuecomment-97122990","issue_url":"https://api.github.com/repos/arpg/Node/issues/19","id":97122990,"user":{"login":"Algomorph","id":1050606,"avatar_url":"https://avatars.githubusercontent.com/u/1050606?v=3","gravatar_id":"","url":"https://api.github.com/users/Algomorph","html_url":"https://github.com/Algomorph","followers_url":"https://api.github.com/users/Algomorph/followers","following_url":"https://api.github.com/users/Algomorph/following{/other_user}","gists_url":"https://api.github.com/users/Algomorph/gists{/gist_id}","starred_url":"https://api.github.com/users/Algomorph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Algomorph/subscriptions","organizations_url":"https://api.github.com/users/Algomorph/orgs","repos_url":"https://api.github.com/users/Algomorph/repos","events_url":"https://api.github.com/users/Algomorph/events{/privacy}","received_events_url":"https://api.github.com/users/Algomorph/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T16:12:14Z","updated_at":"2015-04-28T16:12:14Z","body":"The fix/linux_pthreads compiles fine for me, I think it's safe to merge. Not sure that just adding \"pthread\" is the 100% correct way to do it, though. Aren't other platforms also using threading?"}}