{"action":"opened","issue":{"url":"https://api.github.com/repos/jkuhlmann/gainput/issues/62","repository_url":"https://api.github.com/repos/jkuhlmann/gainput","labels_url":"https://api.github.com/repos/jkuhlmann/gainput/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/jkuhlmann/gainput/issues/62/comments","events_url":"https://api.github.com/repos/jkuhlmann/gainput/issues/62/events","html_url":"https://github.com/jkuhlmann/gainput/issues/62","id":355097200,"node_id":"MDU6SXNzdWUzNTUwOTcyMDA=","number":62,"title":"cannot link library","user":{"login":"FrancescoBoi","id":31819999,"node_id":"MDQ6VXNlcjMxODE5OTk5","avatar_url":"https://avatars2.githubusercontent.com/u/31819999?v=4","gravatar_id":"","url":"https://api.github.com/users/FrancescoBoi","html_url":"https://github.com/FrancescoBoi","followers_url":"https://api.github.com/users/FrancescoBoi/followers","following_url":"https://api.github.com/users/FrancescoBoi/following{/other_user}","gists_url":"https://api.github.com/users/FrancescoBoi/gists{/gist_id}","starred_url":"https://api.github.com/users/FrancescoBoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrancescoBoi/subscriptions","organizations_url":"https://api.github.com/users/FrancescoBoi/orgs","repos_url":"https://api.github.com/users/FrancescoBoi/repos","events_url":"https://api.github.com/users/FrancescoBoi/events{/privacy}","received_events_url":"https://api.github.com/users/FrancescoBoi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-29T10:29:25Z","updated_at":"2018-08-29T10:29:25Z","closed_at":null,"author_association":"NONE","body":"Hello I built the library locally correctly but I am having problems when trying to using it even with sample codes.\r\n\r\nThrough a Makefile I am running the following command: \r\n\r\n`g++ -Wall -Wextra -std=c++11 -I ../gainput/build/include/ -L../cmake_bin_dir/lib/ -L../gainput/build/lib `pkg-config --cflags --libs ../cmake_bin_dir/instDir/lib/pkgconfig/opencv.pc` obj/InputState.o obj/InputStateA.o obj/InputStateContext.o obj/parking.o obj/utils.o -o parking`\r\n\r\nresulting in the following error:\r\n\r\n```\r\nUndefined symbols for architecture x86_64:\r\n  \"gainput::InputManager::InputManager(bool, gainput::Allocator&)\", referenced from:\r\n      _main in parking.o\r\n  \"gainput::InputManager::~InputManager()\", referenced from:\r\n      _main in parking.o\r\n  \"gainput::GetDefaultAllocator()\", referenced from:\r\n      _main in parking.o\r\n```\r\n\r\nThe include of the library works correctly but when I try to put `gainput::InputManager manager;` I get the error.\r\n\r\nInstead the flags -lgainputstatic or -lgainput are not found. What am I doing wrong?\r\n\r\nand if I try to add -lgainput\r\n"}}
{"actor":{"display_login":"FrancescoBoi"}}