Vaclav:
Don't administrators have to pass a reading test?
I am adding files to the project one at a time.
I expect the compiler to terminate compilation when I use
I know it is a bit much to ask, Vaclav, but I expect you to post code that demonstrates the problem.
Posting code and then saying "oh well if I change such-and-such I get a problem" isn't quite the same as posting the problem code itself.
Anyway, I'll bite. Your original code, excluding the comment lines, is this:
#include "diskio.h" // local copy
#include "Arduino.h"
#include "utility.h"
That generates two errors:
sketch_jul09a.ino:1:34: error: diskio.h: No such file or directory
sketch_jul09a.ino:3:21: error: utility.h: No such file or directory
Now you add the #error line:
#include "diskio.h" // local copy
#error STOP
#include "Arduino.h"
#include "utility.h
And you get three errors:
sketch_jul09a.ino:1:34: error: diskio.h: No such file or directory
sketch_jul09a.ino:2:2: error: #error STOP
sketch_jul09a.ino:4:21: error: utility.h: No such file or directory
Why are you so astonished at that? You already had two errors, now you have three.
Let's try more:
#include "diskio.h" // local copy
#error STOP
#error SLEDGING
#error ADMINISTRATORS
#include "Arduino.h"
#include "utility.h"
Gives us:
sketch_jul09a.ino:1:34: error: diskio.h: No such file or directory
sketch_jul09a.ino:2:2: error: #error STOP
sketch_jul09a.ino:3:2: error: #error SLEDGING
sketch_jul09a.ino:4:2: error: #error ADMINISTRATORS
sketch_jul09a.ino:6:21: error: utility.h: No such file or directory
Wow! Horror! Five errors!
I bet we could get up to 100 or so errors.
Better to remain silent and be thought a fool than to speak out and remove all doubt.
Ah yes, never a truer word was spoken.