Closed
Description
Using Arduino IDE 1.6.7 2015/11/04 03:53 with Arduino SAM Boards 1.6.5 and Windows 7 64 bit
Maybe the same issue solved in the SAMD core by: arduino/ArduinoCore-samd@a546da2
Sketch:
byte x = max(1, 2);
void setup() {
}
void loop() {
}
Error when compiled with Due selected in Boards menu:
sketch_nov04a:1: error: 'max' was not declared in this scope
byte x = max(1, 2);
^
exit status 1
'max' was not declared in this scope
The sketch compiles fine with Arduino SAM Boards 1.6.4 or with an AVR board selected
Reported at http://forum.arduino.cc/index.php?topic=357312.msg2463840#msg2463840