{"action":"created","issue":{"url":"https://api.github.com/repos/ddemidov/ev3dev-lang-cpp/issues/13","repository_url":"https://api.github.com/repos/ddemidov/ev3dev-lang-cpp","labels_url":"https://api.github.com/repos/ddemidov/ev3dev-lang-cpp/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/ddemidov/ev3dev-lang-cpp/issues/13/comments","events_url":"https://api.github.com/repos/ddemidov/ev3dev-lang-cpp/issues/13/events","html_url":"https://github.com/ddemidov/ev3dev-lang-cpp/issues/13","id":187438869,"number":13,"title":"Docker container","user":{"login":"anonyme0","id":11986200,"avatar_url":"https://avatars.githubusercontent.com/u/11986200?v=3","gravatar_id":"","url":"https://api.github.com/users/anonyme0","html_url":"https://github.com/anonyme0","followers_url":"https://api.github.com/users/anonyme0/followers","following_url":"https://api.github.com/users/anonyme0/following{/other_user}","gists_url":"https://api.github.com/users/anonyme0/gists{/gist_id}","starred_url":"https://api.github.com/users/anonyme0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anonyme0/subscriptions","organizations_url":"https://api.github.com/users/anonyme0/orgs","repos_url":"https://api.github.com/users/anonyme0/repos","events_url":"https://api.github.com/users/anonyme0/events{/privacy}","received_events_url":"https://api.github.com/users/anonyme0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-04T21:09:24Z","updated_at":"2016-11-05T06:18:41Z","closed_at":null,"body":"I have installed this in my docker container. However, when I run arm-linux-gnueabi-g++ -o main main.cpp (in which there is #include <ev3dev.h>), it doesn't work. I'm really new to cross-compilation and linux, so consider this question as a beginner question."},"comment":{"url":"https://api.github.com/repos/ddemidov/ev3dev-lang-cpp/issues/comments/258594045","html_url":"https://github.com/ddemidov/ev3dev-lang-cpp/issues/13#issuecomment-258594045","issue_url":"https://api.github.com/repos/ddemidov/ev3dev-lang-cpp/issues/13","id":258594045,"user":{"login":"ddemidov","id":270503,"avatar_url":"https://avatars.githubusercontent.com/u/270503?v=3","gravatar_id":"","url":"https://api.github.com/users/ddemidov","html_url":"https://github.com/ddemidov","followers_url":"https://api.github.com/users/ddemidov/followers","following_url":"https://api.github.com/users/ddemidov/following{/other_user}","gists_url":"https://api.github.com/users/ddemidov/gists{/gist_id}","starred_url":"https://api.github.com/users/ddemidov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddemidov/subscriptions","organizations_url":"https://api.github.com/users/ddemidov/orgs","repos_url":"https://api.github.com/users/ddemidov/repos","events_url":"https://api.github.com/users/ddemidov/events{/privacy}","received_events_url":"https://api.github.com/users/ddemidov/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T06:18:41Z","updated_at":"2016-11-05T06:18:41Z","body":"`<>` brackets are used in C++ to reference system headers (installed in standard system locations). If you have `ev3dev.h` lying next to `main.cpp`, you should either change the include line to be\r\n```cpp\r\n#include \"ev3dev.h\"\r\n```\r\nor tell the compiler to look inside the current directoty:\r\n```cpp\r\narm-linux-gnueabi-g++ -o main main.cpp -I.\r\n```\r\nAlso, you need to pass the `ev3dev.cpp` to the compiler as well:\r\n```cpp\r\narm-linux-gnueabi-g++ -o main main.cpp ev3dev.cpp -I.\r\n```"}}
{"actor":{"display_login":"ddemidov"}}