We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
When I try to use sscanf in my application, I get the error:
linking... *** ERROR L104: MULTIPLE PUBLIC DEFINITIONS SYMBOL: GETCHAR MODULE: C:\KEIL\C51\LIB\C51L.LIB (GETCHAR) *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?GETCHAR?GETCHAR *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: GETCHAR MODULE: C:\KEIL\C51\LIB\C51FPL.LIB (SCANF) ADDRESS: 1EF6H
I have a custom version of getchar in my program that calls an interrupt driven serial I/O handler.
Since sscanf does not use serial I/O why is it trying to use scanf or even getchar for that matter.
How do I use a custom getchar function and sscanf in the same program?
http://www.keil.com/support/man/docs/c51/c51_getchar.htm
Looks you you should be providing a custom _getkey - not a custom getchar ... ?