From: Martyn W. <we...@co...> - 2005-09-26 13:28:40
|
Hi Diego, Have you written an implementation of the putchar() function for your hardware implementation? Due to the many varied ways in which printf() could be used, for example: RS232 comms to displaying on a 2x40 character LCD display, you need to define your own putchar() function which is utilised by printf() when it needs to display a character. Martyn On Mon, 2005-09-26 at 09:45 -0300, Diego Manenti Martins wrote: > Hi, > I doownloaded the sdcc-snapshot-i586-mingw32msvc-20050926 > and when I try to compile a test source I give this error: >=20 > C:\projeto\testesdcc>sdcc -mpic14 -p16f877 main.c > Processor: 16f877 > main.c:4: warning 85: in function putchar unreferenced function > argument : 'c' > message: using default linker script "C:\Program Files\gputils\lkr > \16f877.lkr" > error: missing definition for symbol "_printf", required by "main.o" >=20 > C:\projeto\testesdcc> >=20 > Is not possible to use printf with pic14? >=20 > Thank you! >=20 --=20 Martyn Welch (we...@co...) PGP Key : http://ubicomp.lancs.ac.uk/~martyn/pgpkey.html |