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)
void main(void)

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)