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

blink.axf: Error: L6200E: Symbol os_thread_def_blink_LED multiply defined (by led.o and main.o).

hello, Error: L6200E: Symbol os_thread_def_blink_LED multiply defined (by led.o and main.o)..i have declared the variable led.h header file. and included the same header file in all the sub files

Parents
  • Did you specify the "extern" keyword to tell the compiler that the header file just informs about the existence of the variable?

    Else the compiler will try to create one variable with that name everytime it sees the header file.

Reply
  • Did you specify the "extern" keyword to tell the compiler that the header file just informs about the existence of the variable?

    Else the compiler will try to create one variable with that name everytime it sees the header file.

Children