Skip to content

[SAM core 1.6.5] 'max' was not declared in this scope #4082

Closed
@per1234

Description

@per1234

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

Metadata

Metadata

Assignees

Labels

Architecture: SAMApplies only to the SAM microcontrollers (Due)Type: RegressionSomething that used to work and now doesn't

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions