|
From: <MSo...@Mi...> - 2001-05-02 07:27:57
|
Hello Robbo,
there are so many options of what to do with the output of printf (e.g. s=
end
it to one of the serial ports, to a LC-Display with various protocols, to=
a
parallel printer, to a CRT, to some kind of debugging port) that you have=
to
write putchar yourself.
Regards, Michael
-----Urspr=FCngliche Nachricht-----
Von: sdc...@li...
[mailto:sdc...@li...]Im Auftrag von Robbo
Gesendet: Mittwoch, 2. Mai 2001 00:02
An: sdc...@li...
Betreff: [Sdcc-user] putchar()
Thanks for that, but where do I get putchar() from? do i have to write it
myself? or is it available somewhere?
Thanks for your help, Robbo.
----- Original Message -----
From: Trefor Edwards <Tr...@ma...>
To: Robbo <ro...@ae...>
Sent: Monday, April 30, 2001 9:08 PM
Subject: Re: [Sdcc-user] simple problem, help!
> Simple Problem
> Simple Solution
>
> YOU have to supply a copy of the function putchar(), so that it knows w=
hat
to do with the output of your printf.
>
> Trefor.
>
> ----- Original Message -----
> From: "Robbo" <ro...@ae...>
> To: <sdc...@li...>
> Sent: Mon, 30 Apr 2001 07:38:35 +0100 (GMT+01:00)
> Subject: [Sdcc-user] simple problem, help!
>
> > Hi there,
> >
> > I am trying to run the classic program:
> >
> > #include <stdio.h>
> >
> > main()
> > {
> > printf("hello world");
> > }
> >
> > but when I compile it, I get the following warning:
> > ?ASlink-Warning-Undefined Global '_putchar' referenced by module
'vprintf'
> >
> > can someone tell me what this means? or is important?
> >
> > thanks in advance, robbo.
> >
> >
> >
> > AEC Electronics
> > www.aec-electronics.co.nz
> > Ph: +64 3 366 1426
> > Fax: +64 3 366 1649
> >
> >
>
>
>
>
> _______________________________________________________________________
> FSmail - Get your free web-based email from Freeserve: www.fsmail.net
>
>
>
>
>
>
_______________________________________________
Sdcc-user mailing list
Sdc...@li...
http://lists.sourceforge.net/lists/listinfo/sdcc-user
|