4 Replies Latest reply on Dec 1, 2011 8:20 PM by schurtz.li

    PSOC3 using C51 lib

    schurtz.li

      Hi:

         

      Using C51 Lib in Creator 1.0, printf() works as putchar() re-defined in main file.

         

      But when re-define getchar() to implement scanf(), error happened:

         


      *** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
          SYMBOL:  GETCHAR
          MODULE:  C:\PROGRAM FILES\CYPRESS\PSOC CREATOR\1.0\PSOC CREATOR\IMPORT\KEIL\PK51\8.16\C51\LIB\C51L.LIB (GETCHAR)
          DEFINED:  E:\1_WaveDAC8_SimpleSine.cydsn\DP8051_Keil_816\Debug\main.OBJ (MAIN)

         

         Any idea about that ?

         

        Thanks very much.