You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is Issue 1057 moved from a Google Code project.
Added by 2012-09-30T21:11:11.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium
Original description
What steps will reproduce the problem?
Make a sketch which includes a non-existent include file.
Compile it.
What is the expected output? What do you see instead?
The missing include file is not reported as an error, however flow-on errors are.
(Apologies if this is already reported, however searching outstanding bugs for the word "include" or "error" return practically every issue).
I've noticed recently that if you don't incorporate a library (eg. you haven't restarted the IDE) or otherwise misspell an "#include" directive that the error about the missing file is suppressed. This is not at all helpful, as you then start wondering why something like SPI "is not declared".
What version of the Arduino software are you using? On what operating system? Which Arduino board are you using?
IDE 1.0.1.
OS/X
Board not relevant.
Please provide any additional information below.
Example:
include <SPIFOO.h>
void setup()
{
SPI.begin ();
}
void loop()
{
}
With verbose compiling on:
sketch_oct01a.cpp:1:20: warning: SPIFOO.h: No such file or directory
With verbose compiling off, that line is omitted from the IDE output. You only get:
sketch_oct01a.cpp: In function 'void setup()':
sketch_oct01a:3: error: 'SPI' was not declared in this scope
The text was updated successfully, but these errors were encountered:
This is Issue 1057 moved from a Google Code project.
Added by 2012-09-30T21:11:11.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium
Original description
What steps will reproduce the problem?
What is the expected output? What do you see instead?
The missing include file is not reported as an error, however flow-on errors are.
(Apologies if this is already reported, however searching outstanding bugs for the word "include" or "error" return practically every issue).
I've noticed recently that if you don't incorporate a library (eg. you haven't restarted the IDE) or otherwise misspell an "#include" directive that the error about the missing file is suppressed. This is not at all helpful, as you then start wondering why something like SPI "is not declared".
What version of the Arduino software are you using? On what operating
system? Which Arduino board are you using?
IDE 1.0.1.
OS/X
Board not relevant.
Please provide any additional information below.
Example:
include <SPIFOO.h>
void setup()
{
SPI.begin ();
}
void loop()
{
}
With verbose compiling on:
sketch_oct01a.cpp:1:20: warning: SPIFOO.h: No such file or directory
With verbose compiling off, that line is omitted from the IDE output. You only get:
sketch_oct01a.cpp: In function 'void setup()':
sketch_oct01a:3: error: 'SPI' was not declared in this scope
The text was updated successfully, but these errors were encountered: