Go Down

Topic: why ignore bad #includes? (Read 873 times) previous topic - next topic


I believe it is a bug that 1.0.5 compiles this without error.

Code: [Select]
#include <it_just_plain_isnt/there/at/all.h>

void setup() {
  // put your setup code here, to run once:


void loop() {
  // put your main code here, to run repeatedly:

I just spent a half hour messing with a library that wanted #include <stdint.h> when I had mistakenly put #include <sys/types.h>.  GCC will definitely notice if a whole include is not found.  Why have Arduino just ignore this situation?

Go Up