{"action":"created","issue":{"url":"https://api.github.com/repos/maciekgajewski/c-excercises/issues/42","repository_url":"https://api.github.com/repos/maciekgajewski/c-excercises","labels_url":"https://api.github.com/repos/maciekgajewski/c-excercises/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/maciekgajewski/c-excercises/issues/42/comments","events_url":"https://api.github.com/repos/maciekgajewski/c-excercises/issues/42/events","html_url":"https://github.com/maciekgajewski/c-excercises/pull/42","id":160548107,"number":42,"title":"implemented basic linked list (WIP) - Alex","user":{"login":"neuraltoys","id":4470219,"avatar_url":"https://avatars.githubusercontent.com/u/4470219?v=3","gravatar_id":"","url":"https://api.github.com/users/neuraltoys","html_url":"https://github.com/neuraltoys","followers_url":"https://api.github.com/users/neuraltoys/followers","following_url":"https://api.github.com/users/neuraltoys/following{/other_user}","gists_url":"https://api.github.com/users/neuraltoys/gists{/gist_id}","starred_url":"https://api.github.com/users/neuraltoys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neuraltoys/subscriptions","organizations_url":"https://api.github.com/users/neuraltoys/orgs","repos_url":"https://api.github.com/users/neuraltoys/repos","events_url":"https://api.github.com/users/neuraltoys/events{/privacy}","received_events_url":"https://api.github.com/users/neuraltoys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-15T23:41:10Z","updated_at":"2016-06-16T07:36:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/maciekgajewski/c-excercises/pulls/42","html_url":"https://github.com/maciekgajewski/c-excercises/pull/42","diff_url":"https://github.com/maciekgajewski/c-excercises/pull/42.diff","patch_url":"https://github.com/maciekgajewski/c-excercises/pull/42.patch"},"body":"still have to implement the iterator\r\nbut at the moment cannot compile and I have no idea why\r\n\r\nI get this:\r\nCMakeFiles\\linked_list_test.dir/objects.a(test.cc.obj): In function `main':\r\ntest.cc:9: undefined reference to `LinkedList<int>::LinkedList()'\r\ntest.cc:10: undefined reference to `LinkedList<int>::empty() const'\r\ntest.cc:11: undefined reference to `LinkedList<int>::begin()'\r\ntest.cc:11: undefined reference to `LinkedList<int>::end()'\r\ntest.cc:13: undefined reference to `LinkedList<int>::push_front(int const&)'\r\ntest.cc:14: undefined reference to `LinkedList<int>::empty() const'\r\ntest.cc:15: undefined reference to `LinkedList<int>::size() const'"},"comment":{"url":"https://api.github.com/repos/maciekgajewski/c-excercises/issues/comments/226410304","html_url":"https://github.com/maciekgajewski/c-excercises/pull/42#issuecomment-226410304","issue_url":"https://api.github.com/repos/maciekgajewski/c-excercises/issues/42","id":226410304,"user":{"login":"maciekgajewski","id":1903794,"avatar_url":"https://avatars.githubusercontent.com/u/1903794?v=3","gravatar_id":"","url":"https://api.github.com/users/maciekgajewski","html_url":"https://github.com/maciekgajewski","followers_url":"https://api.github.com/users/maciekgajewski/followers","following_url":"https://api.github.com/users/maciekgajewski/following{/other_user}","gists_url":"https://api.github.com/users/maciekgajewski/gists{/gist_id}","starred_url":"https://api.github.com/users/maciekgajewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciekgajewski/subscriptions","organizations_url":"https://api.github.com/users/maciekgajewski/orgs","repos_url":"https://api.github.com/users/maciekgajewski/repos","events_url":"https://api.github.com/users/maciekgajewski/events{/privacy}","received_events_url":"https://api.github.com/users/maciekgajewski/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T07:36:20Z","updated_at":"2016-06-16T07:36:20Z","body":"The code _compiles_ fine, this is a linker error.\r\nin main.cc you are calling ```LinekdList<int>::empty()```. Compiler sees the instantiation of the class template ```LinkedList<int>```, and sees the _declaration_ of the method ```empty()```.\r\n\r\nThen the linker tries to mach this call to ```LinkedList<int>::empty()``` to the _definition_ of the function, and fails: the function is never defined!"}}
{"actor":{"display_login":"maciekgajewski"}}