Kindergarten printf question

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by hass on Tue May 01 05:48:08 MST 2012
After exercising demo programs (blinky etc) and creating a few simple projects, I lifted an example from the forum which happens to use printf.  It fails to link unless I comment out the printf statements. Upon discovering this, I inserted a printf into  "LPC1343_cmsis2_blinky" and witnessed the same failure. The only clues I am aware of  ( as a Rookie)  are a series of undefined references  being called out by the linker. Here's an example

c:/nxp/lpcxpresso_4.2.0_264/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib/thumb2\libcr_c.a(_writebuf.o): In function `_Cwritebuf':
_writebuf.c:(.text._Cwritebuf+0x18): undefined reference to `__sys_flen'
_writebuf.c:(.text._Cwritebuf+0x2e): undefined reference to `__sys_seek'
_writebuf.c:(.text._Cwritebuf+0x56): undefined reference to `__sys_write'

I'll appreciate any help on this seemingly trivial problem.