{"action":"created","issue":{"url":"https://api.github.com/repos/ALPSCore/ALPSCore/issues/202","repository_url":"https://api.github.com/repos/ALPSCore/ALPSCore","labels_url":"https://api.github.com/repos/ALPSCore/ALPSCore/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/ALPSCore/ALPSCore/issues/202/comments","events_url":"https://api.github.com/repos/ALPSCore/ALPSCore/issues/202/events","html_url":"https://github.com/ALPSCore/ALPSCore/issues/202","id":145223305,"number":202,"title":"Do not include current directory in header search paths?","user":{"login":"galexv","id":6576577,"avatar_url":"https://avatars.githubusercontent.com/u/6576577?v=3","gravatar_id":"","url":"https://api.github.com/users/galexv","html_url":"https://github.com/galexv","followers_url":"https://api.github.com/users/galexv/followers","following_url":"https://api.github.com/users/galexv/following{/other_user}","gists_url":"https://api.github.com/users/galexv/gists{/gist_id}","starred_url":"https://api.github.com/users/galexv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galexv/subscriptions","organizations_url":"https://api.github.com/users/galexv/orgs","repos_url":"https://api.github.com/users/galexv/repos","events_url":"https://api.github.com/users/galexv/events{/privacy}","received_events_url":"https://api.github.com/users/galexv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ALPSCore/ALPSCore/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ALPSCore/ALPSCore/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"galexv","id":6576577,"avatar_url":"https://avatars.githubusercontent.com/u/6576577?v=3","gravatar_id":"","url":"https://api.github.com/users/galexv","html_url":"https://github.com/galexv","followers_url":"https://api.github.com/users/galexv/followers","following_url":"https://api.github.com/users/galexv/following{/other_user}","gists_url":"https://api.github.com/users/galexv/gists{/gist_id}","starred_url":"https://api.github.com/users/galexv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galexv/subscriptions","organizations_url":"https://api.github.com/users/galexv/orgs","repos_url":"https://api.github.com/users/galexv/repos","events_url":"https://api.github.com/users/galexv/events{/privacy}","received_events_url":"https://api.github.com/users/galexv/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-04-01T16:23:18Z","updated_at":"2016-04-04T19:51:20Z","closed_at":null,"body":"See issue #201. \r\nThe underlying problem is that `-I.` in the compiler invocation means, according to [GCC 4.9.2 documentation](https://gcc.gnu.org/onlinedocs/gcc-4.9.2/cpp/Search-Path.html#Search-Path), that the headers (even the \"system\" headers in angular brackets!) are first searched in the current directory. As a result, if, e.g., a generated executable accidentally named the same as a standard header, we have an unexpected behavior, as #201 demonstrated. \r\nIt seems to me that there is no actual need of including the current directory in the header search path. If we want to include a file in the current directory, we should just put its name in quotes (`#include \"local_header.hpp\"`)."},"comment":{"url":"https://api.github.com/repos/ALPSCore/ALPSCore/issues/comments/205467077","html_url":"https://github.com/ALPSCore/ALPSCore/issues/202#issuecomment-205467077","issue_url":"https://api.github.com/repos/ALPSCore/ALPSCore/issues/202","id":205467077,"user":{"login":"egull","id":7191877,"avatar_url":"https://avatars.githubusercontent.com/u/7191877?v=3","gravatar_id":"","url":"https://api.github.com/users/egull","html_url":"https://github.com/egull","followers_url":"https://api.github.com/users/egull/followers","following_url":"https://api.github.com/users/egull/following{/other_user}","gists_url":"https://api.github.com/users/egull/gists{/gist_id}","starred_url":"https://api.github.com/users/egull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egull/subscriptions","organizations_url":"https://api.github.com/users/egull/orgs","repos_url":"https://api.github.com/users/egull/repos","events_url":"https://api.github.com/users/egull/events{/privacy}","received_events_url":"https://api.github.com/users/egull/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T19:51:20Z","updated_at":"2016-04-04T19:51:20Z","body":"I checked this – I can't find a -I. in any of my includes. Do you know where it could come from? Was it specified on the command line?"}}