Skip to content

#define c bug in compilation #1735

Closed
Closed
@polettix

Description

@polettix

This simple program fails to compile in the 1.0.5 IDE:

#define c 42
void setup () {}
void loop () {}

I saw that the problem is with the c, nothing wrong happens using another token like d or life. Additionally, compilation is fine if there is a statement before the define, like in the following:

int a = 0;
#define c 42
void setup () {}
void loop () {}

I got the error while trying to compile the first sketch in http://www.arduino.cc/en/Tutorial/PlayMelody

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions