#1397 Down loaded sdcc 2.7.0 & tried to test hello world program

closed-rejected
nobody
5
2013-05-25
2007-11-18
Anonymous
No

----------- Input source file -------------------------

> cat test.c
/* test program. */

#include <stdio.h>

void main (void)
{
printf ("Hello World.\n");
}
>

------------ Compiler output -------------------------
> sdcc test.c

?ASlink-Warning-Undefined Global '_putchar' referenced by module 'vprintf'

> Process Exit Code: 1
> Time Taken: 00:00

----- Tried to see _putchar.rel in lib/small ---------

C:\Program Files\SDCC\lib\small>ls -l _putchar.*
ls: _putchar.*: No such file or directory

C:\Program Files\SDCC\lib\small>

-------------- Compiler version -----------------------

C:\Program Files\SDCC\bin>sdcc --version
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.7.0 #4818 (May 31 2007) (MINGW32)

C:\Program Files\SDCC\bin>

--------------- My details ---------------------------

Name: Arjun G.
Student of Electronics Engineering.
My Email: arjunkashyap.g@gmail.com

---- Please get me correct update of library ---------

Discussion

  • C source file created by PN2

     
    Attachments
  • Maarten Brock
    Maarten Brock
    2007-11-19

    Logged In: YES
    user_id=888171
    Originator: NO

    As explained in the manual there is no default putchar implementation. You must write it yourself.

     
  • Maarten Brock
    Maarten Brock
    2007-11-19

    • milestone: --> non_bugs
    • status: open --> closed-rejected