Hello,
I am trying to compile the atmelavr-native-blink program from the examples.
It aborts with main.c:1:20: fatal error: avr/io.h: No such file or directory.
If i add an extra #include <string.h> at the first line it finds string.h
but it gives an error on the next line as before.
it looks like it can find header files in
~/.platformio/packages/toolchain-atmelavr/avr/include/
but not in
~/.platformio/packages/toolchain-atmelavr/avr/include/avr
~//.platformio/packages/toolchain-atmelavr/avr/include/util/
etc
If i change the file extension from main.c to main.cpp it works as expected without
errors.
I am using PlatformIO, version 3.3.0 without the ide.
Regards
Wim
Hello,
Problem solved i used geany as editor and the build commands for .c files were not set correctly.
This will teach me to always first try it at the command line
So the fault lays with me i am sorry for the trouble.
Wim