I try to add a library that I have made to an existing project, but I have some problems during the compilation. The errors come from the debug part. The console says to me that I have multiple definition of variable, but I’m sure these variables are definite once.
Here’s the console report :
11:03:59 **** Incremental Build of configuration Debug for project BlueMox_shield ****
Building target: BlueMox_shield.elf
Invoking: MCU GCC Linker
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -mfloat-abi=soft -specs=nosys.specs -specs=nano.specs -u _printf_float -T”../STM32L073RZTx_FLASH.ld” -Wl,-Map=output.map -Wl,--gc-sections -o “BlueMox_shield.elf” @”objects.list” -lm
Src/main.o:(.bss+0x14): multiple definition of `Iload’
Src/BlueMox_Library.o:(.bss+0x4): first defined here
Src/main.o:(.bss+0x18): multiple definition of `buffer’
Src/BlueMox_Library.o:(.bss+0x8): first defined here
collect2.exe: error: ld returned 1 exit status
make: *** BlueMox_shield.elf Error 1
makefile:35: recipe for target ‘BlueMox_shield.elf’ failed
11:03:59 Build Finished (took 511ms)
Has anyone ever had this kind of problem?