#define putchar PUTCHAR You want to do it the other way round.
This line tells the preprocessor to replace all occurences of "putchar" string in the sources by "PUTCHAR" string; but assuming you don't have linked the SOURCES of (any)printf, (rather, you used the precompiled library) there is not "putchar" string in the sources to replace - whence this #define changes NOTHING. JW (the C-hater) ------------------------------------------------------------------------- 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