This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS

I have Declared all my declaration in one file called ADeclaration.h and included this file in all my module C files.

i.e.

i have

 MAIN.c (MAIN)
 Port_IO.c (PORT_IO)
 STORAGE.c (STORAGE)
 TEMPERATURE.c (TEMPERATURE)
 CONVERT.c (CONVERT)
 UART.c (UART)
 RTC.c (RTC)
 I2C.c (I2C)
 ISR.c(ISR)
 FLASH.c (FLASH)

All the declaration of this files are in Adeclaration.h

now i am getting my project.M51 with
Program Size: data=157.5 xdata=5988 code=11148
LINK/LOCATE RUN COMPLETE. 29 WARNING(S), 294 ERROR(S)

and the target is not created

most of the error are like

*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
    SYMBOL:  LOCAL
    MODULE:  STORAGE.obj

Parents
  • i had been given the one file 2000 line code from my company and they asked me to modularized this code. Now i only know the flow of this code.with this when i modularized the code it is compiling but showing error mostly ERROR L104 and ERROR L105

    the first error in my log is L104 and the list is endless with the same error ....rest of the error is rectified by me.

    only Error 104 is in my list .

    and here i am stucked in it.

Reply
  • i had been given the one file 2000 line code from my company and they asked me to modularized this code. Now i only know the flow of this code.with this when i modularized the code it is compiling but showing error mostly ERROR L104 and ERROR L105

    the first error in my log is L104 and the list is endless with the same error ....rest of the error is rectified by me.

    only Error 104 is in my list .

    and here i am stucked in it.

Children