void loop() {
if (doOnce) {
doOnce=false;
if (stricmp("ABC","DEF") < ) {
Serial.println("Less than");
}
}
delay(20000);
}
sketch_sep11a.ino: In function 'void loop()':
sketch_sep11a:11: error: 'stricmp' was not declared in this scope
sketch_sep11a:11: error: expected primary-expression before ')' token
You are including string.h for no reason, but that's not the problem. Sorry, lower case 's' is indeed what you need I think. Also instead of all the doOnce stuff just put the code in setup().
Maybe stricmp() is not part of the standard libraries.
Try
if (strcasecmp("ABC","DEF") < 0) {
that compiles but stricmp is defined to that anyway in string.h
Thanks for your reply.
However, the problem was actually very simple after I sleep on the problem.
I some how in all my trackball moving and clicking got the board type changed from DUE to another board.
FYI, the stricmp is part of the standard library with DUE.
Using the correct board type, the program compiles perfectly without any includes at all.
The reason I use the doOnce variable is to stop messages going to the SerialMonitor.
Very handy to use during testing.
Thanks again for at least give the problem some thought.
Drop me an email, always interested in exchanging ideas with our down under buddies.