Hi All,
I'm working on a project where i want to use the Bluetopia SDK, the lib files are compiled in the legacy COFF format. My project is currently using the eabi (ELF) format. when i switch the format to COFF and clean and rebuild the project i get a lot of errors. After a while i figured out the source but i don't know the answer.
I have some header files where i declare some chars like this (not the actual header file):
#ifndef HEADTEST_H_
#define HEADTEST_H_
char test2;
char test3;
#define false 0
#define true 1
#endif
I use these chars in muliple c files in my project, when i compile whet ELF there is no problem but when i compile with COFF then i get the following errors:
Description Resource Path Location Type
#10056 symbol "test2" redefined: first defined in "./src/Project/hardware/Sensor/Sensor1.obj"; redefined in "./src/Project/logica/Startup/Start.obj" Project C/C++ Problem
Some how the linker gives redefinition errors, can someone help me with this? All sugestions are welcome!