Web IDE Warning

I have one library that uses another. I get a warning because my main sketch file doesn’t include one of the library headers:

You are not including

OneWire.h

even though they are a part of this app. Are you sure you want to continue? If you want to include these files, please hit cancel and add include lines to the top of the file.

It’s not that big a deal, but I’m curious why if this warning is necessary: if the sketch had needed the header wouldn’t Verify have failed anyway?

2 Likes

Good Questing, I am facing this too.

What exactly are you facing too?
This topic is two years old.

This kind of warning usually means that you have a .h/.cpp set added to your project via the (+) button but never included it anywhere (or rather removed the automatically generated include statement in your .ino)
But for OneWire you should actually import the respective community library (whuch would also generate an include statement), rather than adding it via (+) (unless you want to tweak the library itself).

Thank you @ScruffR. I am all set.