Abhi7
May 31, 2018, 10:13am
1
what should be the error with my code when it shows this message?
In file included from E:\X Class\Arduino\Arduino projects\BATAK\BATAK.ino:11:0:
E:\X Class\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:72:1: error: expected ',' or ';' before 'class'
class SPISettings {
^
[AND this one]
exit status 1
Error compiling for board Arduino/Genuino Uno.
Don't hijack other peoples threads; I've asked the moderators to split it of. And you will need to post your code (using code tags).
My computer doesn't have an E: drive. Sorry.
That's not a compiler error, that's an error in your code.
Probably some missing semicolons in the code you didn't post.
I looked at the SPI.h file and this is the first non-preprocessor line. I suspect that a missing ';' before #include <SPI.h> could cause this error.
232
June 2, 2018, 12:04am
6
As johnwasser said - the error is prior the "class" word.
Most likely bad "cut and paste " of header file.
Most processes indicate / return 0 (zero) on success.
"error status 1" is just an end message where the return value is 1
Good luck in finding the bug.