Hi nicoverduin. My guess is that the macro putchar/getchar from stdio.h is included in the ECLIPSE/AVR environment. I have added two undef in IOStream.hh:
#undef putchar
#undef getchar
This has to be repeated in sketches that include IOStream as the Arduino preprocessor is adding some code.
I have not yet used the Arduino ECLIPSE environment. Would be great to have that working. Thanks for trying it out.
Cheers!
BW: After grep-ing through the Arduino core stdio.h is included there in several files. It must be the Arduino pre-processor that includes it:
HardwareSerial.cpp:#include <stdio.h>
Print.cpp:#include <stdio.h>
Print.h:#include <stdio.h> // for size_t
WInterrupts.c:#include <stdio.h>
wiring_private.h:#include <stdio.h>