{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/3456","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/3456/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/3456/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/3456/events","html_url":"https://github.com/arduino/Arduino/issues/3456","id":92877441,"number":3456,"title":"No such file or directory – #include <file.h>  just a question (1.6.6.) ","user":{"login":"VaclavSal","id":6053260,"avatar_url":"https://avatars.githubusercontent.com/u/6053260?v=3","gravatar_id":"","url":"https://api.github.com/users/VaclavSal","html_url":"https://github.com/VaclavSal","followers_url":"https://api.github.com/users/VaclavSal/followers","following_url":"https://api.github.com/users/VaclavSal/following{/other_user}","gists_url":"https://api.github.com/users/VaclavSal/gists{/gist_id}","starred_url":"https://api.github.com/users/VaclavSal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VaclavSal/subscriptions","organizations_url":"https://api.github.com/users/VaclavSal/orgs","repos_url":"https://api.github.com/users/VaclavSal/repos","events_url":"https://api.github.com/users/VaclavSal/events{/privacy}","received_events_url":"https://api.github.com/users/VaclavSal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arduino/Arduino/labels/Component:%20Compilation","name":"Component: Compilation","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/arduino/Arduino/milestones/15","html_url":"https://github.com/arduino/Arduino/milestones/Release%201.6.6","labels_url":"https://api.github.com/repos/arduino/Arduino/milestones/15/labels","id":1158070,"number":15,"title":"Release 1.6.6","description":"","creator":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":176,"state":"open","created_at":"2015-06-10T07:48:32Z","updated_at":"2015-07-03T20:05:55Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-07-03T13:34:15Z","updated_at":"2015-07-05T09:19:43Z","closed_at":"2015-07-03T20:05:55Z","body":"This is just a question why, being posted here because I am tired of Arduino.cc forum morons personal insults, beside they are not qualified to intelligently  answer my question anyway. .\r\n\r\nBut if you have a problem with me posting my question here just skip this post. \r\n\r\nI have x.ino  file with #include “CMain.h” where I  have int main () function processing my application code. It all works just fine, no problem.\r\n\r\nWhen I add #include<address.h> (#include left less than address.h right greater than) as first line in my x.ino my application compiles and still works.\r\n\r\nWhen I move the #include<address.h> (#include left less than address.h right greater than) as first line in / into my CMain.h the compiler cannot find the file  anymore, so I get “No such file or directory”. \r\n\r\nWhat , why or who is stopping the Windows OS / compiler (?)  search for the (#include left less than address.h right greater than) file ? \r\n\r\nJust a question , I got no problem putting all my includes in x.ino file. \r\n\r\nThanks for your time \r\nVaclav \r\n\r\nPS I can see #include left less than address.h right greater than during editing but when I post / save  it the file name is missing ! \r\n"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/118601537","html_url":"https://github.com/arduino/Arduino/issues/3456#issuecomment-118601537","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/3456","id":118601537,"user":{"login":"matthijskooijman","id":194491,"avatar_url":"https://avatars.githubusercontent.com/u/194491?v=3","gravatar_id":"","url":"https://api.github.com/users/matthijskooijman","html_url":"https://github.com/matthijskooijman","followers_url":"https://api.github.com/users/matthijskooijman/followers","following_url":"https://api.github.com/users/matthijskooijman/following{/other_user}","gists_url":"https://api.github.com/users/matthijskooijman/gists{/gist_id}","starred_url":"https://api.github.com/users/matthijskooijman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthijskooijman/subscriptions","organizations_url":"https://api.github.com/users/matthijskooijman/orgs","repos_url":"https://api.github.com/users/matthijskooijman/repos","events_url":"https://api.github.com/users/matthijskooijman/events{/privacy}","received_events_url":"https://api.github.com/users/matthijskooijman/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T09:19:43Z","updated_at":"2015-07-05T09:19:43Z","body":"What happens is that the IDE searches all your .ino files for #include lines. For each included header file it found, it tries to find a corresponding library that provides that header file. Then, while compiling, those libraries are added in the include path using `-I`, and the libraries itself are included in the link too.\r\n\r\nWhen you put your include in the .h file, the IDE will not see it and thus not include the needed library in the include path and link.\r\n\r\nI hope this clarifies your question."}}