merrickMilo
New member
Hi everyone,
I'm working on a Teensy-based project that uses both the Teensy SD.h library (which depends on its custom SdFat) and the Adafruit SPIFlash library (which depends on the Adafruit-modified SdFat). I'm running into multiple definition errors and macro redefinition warnings like these:
"
multiple definition of `ostream:
utNum(long)';
multiple definition of `ExFatPartition::checkUpcase(Print*)';
warning: "FILE_READ" redefined
"
and
"
Multiple libraries were found for "SdFat.h"
Used: /Users/merrickfort/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat
Not used: /Users/merrickfort/TeensySketchbook/libraries/SdFat_-_Adafruit_Fork
exit status 1
"
I’ve tried separating the libraries as well as following this solution posted here:
This solution was promising but the adafruit package I was utilizing relies on the conflicting version as a dependencies and is included during the compilation process or when just including the header file. in other words I couldn't compile without the conflicting libraries being installed circling me around to the original issue
How can I ensure that the Teensy SD.h library uses its custom SdFat while the Adafruit SPIFlash library uses the Adafruit-modified SdFat without causing conflicts?
Any advice or examples would be greatly appreciated!
I'm working on a Teensy-based project that uses both the Teensy SD.h library (which depends on its custom SdFat) and the Adafruit SPIFlash library (which depends on the Adafruit-modified SdFat). I'm running into multiple definition errors and macro redefinition warnings like these:
"
multiple definition of `ostream:
multiple definition of `ExFatPartition::checkUpcase(Print*)';
warning: "FILE_READ" redefined
"
and
"
Multiple libraries were found for "SdFat.h"
Used: /Users/merrickfort/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat
Not used: /Users/merrickfort/TeensySketchbook/libraries/SdFat_-_Adafruit_Fork
exit status 1
"
I’ve tried separating the libraries as well as following this solution posted here:
This solution was promising but the adafruit package I was utilizing relies on the conflicting version as a dependencies and is included during the compilation process or when just including the header file. in other words I couldn't compile without the conflicting libraries being installed circling me around to the original issue
How can I ensure that the Teensy SD.h library uses its custom SdFat while the Adafruit SPIFlash library uses the Adafruit-modified SdFat without causing conflicts?
Any advice or examples would be greatly appreciated!