As usual, I must be missing something totally basic here...
#include "stdio.h"int main(){ printf("hello world\n"); return 0;}
Link errors say the following functions are not found:
Notes
Chen,
In embedded environvment we need to define the printf function, Since the definition will change across platforms, the compiler library cant provide printf. In StarterWare we defined UARTPuts() which will print on the serial port.
So just comment the printf function call, you should be able to link it.
Regards
Baskaran
Thank you, Baskaran!
More questions to close up loose ends:
6. printf is available with CCS/CGT/TMS470; is this via ccs/tools/compiler/tms470/lib/rts*.lib?
7. Is it at all possible to compile the code in rtssrc.zip with gcc, or maybe a "cross-compile" with tms470 to generate a library that can be linked using gcc?
Note this is all for use with the Spectrum Digital AM1707 EVM board.
-Jonathan
6. I am not sure about this. May be the tools team (CCS) can give more info. if you are still interested in this please post a query in "code composer studio" forum.
7. i dont think code compiled with different tool chains can be linked and executed successfully on target.