I have a code with following files:
- Extern_file.h
int variable = 5;
void function (void);
- Extern_file.c
#include Extern_file.h
void function (void){ variable++; }
- main.c
#include Extern_file.h
int main(void){ function(); return 0; }
When link, I got the error:.\Objects\Blinky_LEDS.axf: Error:
L6200E: Symbol variable multiply defined (by Extern_file.o and
main.o).
Im working over a code made from component designer (stm32F105) and
migr
↧