it is a test of the printf function and it doesn't compile (it says :
thermotest.c:73: error 98: conflict with previous definition of 'putchar'
for attribute 'wparam'
thermotest.c:73: error 52: Actual Argument type different from declaration 1
from type 'unsigned-char'
to type 'char')
i defined putchar and getchar(communications on the serial port of
PIC) before main and in main i put printf("test");. The code of putchar and
getchar works when i put it directly in main without calling the printf
function. So the problem might be the wrong declaration of those functions
(or in the wrong place).
i hope that i expose the problem clearly otherwise i will join the program.
Thank you for your help.
2007/3/4, Luit van Drongelen <[EMAIL PROTECTED]>:
what does it do, does it compile and all, and how do you call the
functions?
2007/3/4, Irena NOVAKOVIC <[EMAIL PROTECTED]>:
>
> Hi,
> I would like to use the stdio library in my programe with PIC18F4550. I
> wrote putchar and getchar fonctions in the programe where i would like to
> use the printf fonction but it doesn't work (i included <stdio.h > in my
> program).
> What should I do?
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user