Hi,
Can anyone explain when all examples that include <SPI.h> library work and this otherwise empty sketch throws this error? It is the same if I type the "#include" statement or cut and paste from a working sketch.
By the way just an empty sketch compiles ok.
void setup() {
// put your setup code here, to run once:
#include <SPI.h>
}
void loop() {
// put your main code here, to run repeatedly:
}