Open
Description
It's very unintuitive to build a bit of code and for printf to not work for no discernable reason, only to learn that you need to include a specific line of code.
The SDK should throw a warning or error to the user when attempting to build and the code contains printf, but not stdio_init_all.
Take for example this code:
#include <stdio.h>
#include "pico/stdlib.h"
int main() {
printf("Testing");
return 1;
}
This does not work, but the user is provided no feedback on why it does not work, and are given no idea what to do to troubleshoot it.
I propose it should throw an error like:
"Warning: You have used printf without initialising stdio using stdio_init_all();
beforehand, this means that printf will silently error and not print anything to your computer."