Include file issue


below simple sketch illustrates ide behavior of unaware:

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.


Arduino Forum > Using Arduino > Programming Questions > Include file issue


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code