I don't know what to say here. I have a header file in the same directory as my sketch, and it's simply not finding it. I saw others with the same question, but they always got the response, "put it in the working directory and enclose it in quotes". Well. . .
here's the error message. . .
C:\Users\mark\Documents\Arduino\myStepper\myStepper.ino:65:21: fatal error: Flasher.h: No such file or directory #include "Flasher.h"
I attached a snip to show the file in the directory.
Yes, the path looks a little different, but if you highlight the address it comes up as
C:\Users\mark\Documents\Arduino\myStepper
Now, for the sake of getting it working, I just copied all the text to my sketch and have it working, but I'm trying to make sure this works for the future.
Any idea why that might not be finding the header file, or if I'm overlooking something obvious?
if you quit the IDE and then double click on the myStepper.ino file in this directory where Flasher.h is as well - do you see 2 tabs or only 1 in the IDE?
if you see 2 tabs, when you compile, do you get the error still?
Two things look fishy to me: the header file is identified as a Text Document and there is only an extension shown for the Flasher file (there is no .ino shown for myStepper). I suspect that the file is really named Flasher.h.txt.
And, originally, I noticed it was Flasher.h.ino because I created it in the IDE. So, I opened it in notepad, and saved it as Flasher.h. I actually noticed that it was called a "text document" but figured maybe that was a default for .h. :shrug:
You may want to turn off file extension hiding to prevent this sort of problem in the future. You can do it from Windows Explorer: Tools > Folder options... > View > Hide extensions for known file types(uncheck).
I find that default behavior of Windows very annoying.