|
[Sdcc-user] Re: ?ASlink-Warning-Undefined Global '_printf' referenced by module 'hello'
From: Bela Torok <bela.torok@ks...> - 2001-03-27 07:24
|
Michael, >>sdcc hello.c >hello.c:3: error:mcs51reg.h: No such file or directory >?ASlink-Warning-Undefined Global '__sdcc_external_startup' referenced by module 'hello' >?ASlink-Warning-Undefined Global '_printf' referenced by module 'hello' > You have to fix two problems: 1. Compiler installation: Your compiler does not know where to find the header and library files. Reinstall the compiler & follow the installation instructions. 2. Before using printf() you have to define putchar() and setup serial communication. E.g. use ser_ir.c (in device/lib) and #define putch(c) ser_putc(c) Béla |
| Thread | Author | Date |
|---|---|---|
| [Sdcc-user] Re: ?ASlink-Warning-Undefined Global '_printf' referenced by module 'hello' | Bela Torok <bela.torok@ks...> |