Include file issue
below simple sketch illustrates ide behavior of unaware:
this code not compile on 1.5.8 of ide. note there blank space before header file name in #include directive. remove space , compiles without error. non-space in #include specified in standard, or implementation artifact?
code: [select]
#include < avr/io.h>
void setup() {
// put setup code here, run once:
}
void loop() {
// put main code here, run repeatedly:
}
this code not compile on 1.5.8 of ide. note there blank space before header file name in #include directive. remove space , compiles without error. non-space in #include specified in standard, or implementation artifact?
i think compiler looks all between braces.
it's difference between "avr/io.h" , " avr/io.h", space part of string.
it's difference between "avr/io.h" , " avr/io.h", space part of string.
Arduino Forum > Using Arduino > Programming Questions > Include file issue
arduino
Comments
Post a Comment