- Fri Sep 24, 2021 8:27 am
#228641
Hi,
I am trying to compile the 'BasicReadings' example for the LIS2DH12 with my Board set to the Artemis Dev Kit. I am getting a bunch of multiple definition errors like:
Any suggestions on how to resolve it?
Thanks,
Phil
I am trying to compile the 'BasicReadings' example for the LIS2DH12 with my Board set to the Artemis Dev Kit. I am getting a bunch of multiple definition errors like:
Code: Select all
If I am reading this right it looks like the apollo3 package has its own copy of the library which is creating the conflict.c:/users/lyla caudle/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Lyla Caudle\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.1\variants\SFE_ARTEMIS_DK/mbed/libmbed-os.a(lis2dh12_reg.o): in function `lis2dh12_write_reg':
lis2dh12_reg.c:(.text.lis2dh12_write_reg+0x0): multiple definition of `lis2dh12_write_reg'; libraries\SparkFun_LIS2DH12_Arduino_Library\lis2dh12_reg.cpp.o:lis2dh12_reg.cpp:(.text.lis2dh12_write_reg+0x0): first defined here
Any suggestions on how to resolve it?
Thanks,
Phil