UMDBPP / Balloonduino

Library for basic functions of Balloonduino (Arduino Mega with onboard sensors)
MIT License
3 stars 0 forks source link

Multiple Definition Compiling Error #28

Open zacharyburnett opened 6 years ago

zacharyburnett commented 6 years ago

When compiling, many errors appear with the same general format:

(.text+0x0): multiple definition of `<handle>'

This indicates multiple library instantiation or something. The error at the end reads:

Multiple libraries were found for "SD.h"

Full error from Arduino IDE below:

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `IMULogFile'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

c:/program files/windowsapps/arduinollc.arduinoide_1.8.10.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `PWRLogFile'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `ENVLogFile'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `ssc_enable'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `ads_enable'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `bme_enable'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `mcp_enable'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `bno_enable'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `rtc_enable'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `xbee_enable'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `PWR_STAT_APID'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `ENV_STAT_APID'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `IMU_STAT_APID'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `HK_STAT_APID'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.ino.cpp.o (symbol from plugin): In function `balloonduino':

(.text+0x0): multiple definition of `CMD_APID'

C:\Users\Zach\AppData\Local\Temp\arduino_build_750939\sketch\Balloonduino.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

Multiple libraries were found for "SD.h"
 Used: B:\Workspaces\Arduino\libraries\SD
 Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\SD