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:
- _close
- _fstat
- _isatty
- _lseek
- _read
- _sbrk
- _write
Notes
- The ultimate goal is to compile StarterWare's usb_bulk_dev example (not supported by CCS CGT?), so the target platform is ARM EABI (arm-none-eabi-gcc)
- Linking with the flags "-lc -lgcc -lg" doesn't fix the link errors
- CodeSourcery's libc.pdf (Chapter 12) says to write your own stub functions? Is there no easier way?
- Is (3) really how StarterWare does it? But then why are sbrk, etc. nowhere to be found in the source code?
- Or, do gcc-compiled StarterWare programs not support printf at all??