Include for "Arduino.h" inserted too late #1518
Labels
Component: IDE
The Arduino IDE
Component: Preprocessor
The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Milestone
Example code ...
Sketch:
File "test.h":
Error:
Generated code from pre-processor:
If the include for "Arduino.h" had been done first (before the rest of the sketch was copied in) then the declarations in test.h would work. As it is, you now have to add an include into the front of all the .h files which defeats the usefulness of having the automatic inclusion in the main sketch.
IDE 1.0.5.
These look related:
#1310
#1328
#1468
The text was updated successfully, but these errors were encountered: