Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 5 months ago.
where if printf method is declared and defined for serial class ?
where if printf method is declared and defined for serial class ? I could not find its prototype in serial.h header file. why can't mbed support standard cout interface?
Question relating to:
2 Answers
10 years, 5 months ago.
printf is defined in stdio.h. It's about as standard as it gets and has been around for a lot longer than cout.
10 years, 5 months ago.
Also mbed does support cout iirc, if you include the correct standard C header file. However Cout is HUUGEEEEE compared to printf, and in general it is strongly adviced to not use it on most MCUs.