Is there a .h file that I'm missing that supplies a suitable putchar()
function for the s51 simulator? If I compile this program:
#include <stdio.h>
main() {
printf("hello world\r\n");
return 0;
}
it complains about no putchar() (which I think should be an error rather than
just a warning as well!):
$ "/cygdrive/c/program files/SDCC"/bin/sdcc test1.c
?ASlink-Warning-Undefined Global '_putchar' referenced by module 'vprintf'
to indicate the lack of a putchar routine that knows where a suitable output
device (i.e. the simulator console?) is. I don't see a likely looking .h file
in the include/MCS51 directory, nor any hints in the simulator documentation
(although that isn't a suprise because its not SDCC specific). There didn't
seem to be anything relevant in the mailing list archive either. This is on
a recent (week or two old) SDCC 3.0 snapshot, but the same thing happens on
2.9.0_RELEASE.
Peter Van Epp`
------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages,
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user