Arduino Forum

Development => Suggestions for the Arduino Project => Topic started by: gardner on Jun 11, 2013, 11:17 pm

Title: why ignore bad #includes?
Post by: gardner on Jun 11, 2013, 11:17 pm
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?