Hello all,
I try compile my printf_pokus.c :
#include </usr/local/share/sdcc/include/pic16/stdio.h>
unsigned long a=144300000;
void putchar(char c)
{
//LCD_putc(c);
}
void main(void)
{
printf("%ld",a);
}
after compile
sdcc -mpic16 -p18f2550 -c printf_pokus.c
I see this error:
printf_pokus.c:14: error 98: conflict with previous definition of 'putchar'
for attribute 'type' from type 'void function ( char fixed) fixed' to type
'void function ( char fixed) fixed'
Can anybody help me with this?
My OS is Ubuntu 12.04LTS and SDCC :
mcs51/gbz80/z80/z180/r2k/r3ka/ds390/pic16/pic14/TININative/ds400/hc08/s08
3.2.0 #8008 (Jul 6 2012) (Linux)
Thanks.
--
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user