{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/osquery/issues/1112","labels_url":"https://api.github.com/repos/facebook/osquery/issues/1112/labels{/name}","comments_url":"https://api.github.com/repos/facebook/osquery/issues/1112/comments","events_url":"https://api.github.com/repos/facebook/osquery/issues/1112/events","html_url":"https://github.com/facebook/osquery/issues/1112","id":73897669,"number":1112,"title":"how to use osquery public api in C++ program ","user":{"login":"sami2316","id":11211400,"avatar_url":"https://avatars.githubusercontent.com/u/11211400?v=3","gravatar_id":"","url":"https://api.github.com/users/sami2316","html_url":"https://github.com/sami2316","followers_url":"https://api.github.com/users/sami2316/followers","following_url":"https://api.github.com/users/sami2316/following{/other_user}","gists_url":"https://api.github.com/users/sami2316/gists{/gist_id}","starred_url":"https://api.github.com/users/sami2316/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sami2316/subscriptions","organizations_url":"https://api.github.com/users/sami2316/orgs","repos_url":"https://api.github.com/users/sami2316/repos","events_url":"https://api.github.com/users/sami2316/events{/privacy}","received_events_url":"https://api.github.com/users/sami2316/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/osquery/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-05-07T08:34:17Z","updated_at":"2015-05-22T04:12:04Z","closed_at":"2015-05-11T16:28:32Z","body":"I tried to use osquery functionality in C++ progarm, but I'm failing to link osquery library with my program. \r\nI tried:\r\n#include <osquery/sdk.h>\r\nusing namespace osquery;\r\n Both of these commands are not working. I think there is compiler linkages problem. Guide me how can i use osquery in a C++ program.\r\nI am using netbeans."},"comment":{"url":"https://api.github.com/repos/facebook/osquery/issues/comments/104500720","html_url":"https://github.com/facebook/osquery/issues/1112#issuecomment-104500720","issue_url":"https://api.github.com/repos/facebook/osquery/issues/1112","id":104500720,"user":{"login":"marpaia","id":927168,"avatar_url":"https://avatars.githubusercontent.com/u/927168?v=3","gravatar_id":"","url":"https://api.github.com/users/marpaia","html_url":"https://github.com/marpaia","followers_url":"https://api.github.com/users/marpaia/followers","following_url":"https://api.github.com/users/marpaia/following{/other_user}","gists_url":"https://api.github.com/users/marpaia/gists{/gist_id}","starred_url":"https://api.github.com/users/marpaia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marpaia/subscriptions","organizations_url":"https://api.github.com/users/marpaia/orgs","repos_url":"https://api.github.com/users/marpaia/repos","events_url":"https://api.github.com/users/marpaia/events{/privacy}","received_events_url":"https://api.github.com/users/marpaia/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T04:12:04Z","updated_at":"2015-05-22T04:12:04Z","body":"the headers should be installed to /usr/local/include, the library should be installed to /usr/local/lib/libosquery.a"}}