Pages: [1]   Go Down
Author Topic: why ignore bad #includes?  (Read 345 times)
0 Members and 1 Guest are viewing this topic.
Ontario
Offline Offline
God Member
*****
Karma: 20
Posts: 835
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Code:
#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?
Logged

Pages: [1]   Go Up
Jump to: