very small printf program fails 99gus

02 Dec 2010

Here is the code:

  1. include "mbed.h" printf("World!\n");

error messages are:

"This declaration has no storage class or type specifier (E77-D) <a href="#" onClick="window.open('/cookbook/Compiler-Error-77-D');">(more info)</a>" in file "/main.cpp"

""printf" has already been declared in the current scope (E101) <a href="#" onClick="window.open('/cookbook/Compiler-Error-101');">(more info)</a>" in file "/main.cpp"

"Declaration is incompatible with previous "std::printf" (declared at line 361 of "/opt/RVDS4.1/RVCT/Data/4.1/462/include/unix/stdio.h") (E159) <a href="#" onClick="window.open('/cookbook/Compiler-Error-159');">(more info)</a>" in file "/main.cpp"

"A value of type "const char *" cannot be used to initialize an entity of type "int" (E144) <a href="#" onClick="window.open('/cookbook/Compiler-Error-144');">(more info)</a>" in file "/main.cpp"

02 Dec 2010

Duhhhhh I realized my own error