I have problem when including same header file from two different source files I get error from duplicate variables.
Variable is defined in PID.h
I have PID.h that is included in PID.c and main.c.
Now I trying to port my code to work in LPCXpresso.
I have been using eclipse and gcc before, and this same code and files has been working in that environment.
./src/main.o:(.bss.PID+0x0): multiple definition of `PID'
AHB_SRAM1: 1048 B 32 KB 3.20%
./src/PID.o:(.bss.PID+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Header files are located in separate holder just to keep thing clean.
It's include path is defined as:
"${workspace_loc:/${ProjName}/inc}"