Skip to content

Library file is not found if it's not #included in the sketch #3456

Closed
@JulyJim

Description

@JulyJim

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. .

But if you have a problem with me posting my question here just skip this post.

I 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.

When 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.

When 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”.

What , why or who is stopping the Windows OS / compiler (?) search for the (#include left less than address.h right greater than) file ?

Just a question , I got no problem putting all my includes in x.ino file.

Thanks for your time
Vaclav

PS 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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions