arduino-libraries / SD

SD Library for Arduino
http://arduino.cc/
GNU General Public License v3.0
179 stars 155 forks source link

SdFat library [imported] #16

Closed agdl closed 2 years ago

agdl commented 8 years ago

From @cmaglie on November 15, 2012 18:54

This is Issue 885 moved from a Google Code project. Added by 2012-04-13T15:30:18.000Z by pskor...@gmail.com. Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

What steps will reproduce the problem?

  1. Arduino sketches that depend on the sdfat library fail to compile on Arduino-1.0.1-rc2
  2. I received the following error:
    core.a(new.cpp.o): In function `__cxa_pure_virtual':
    /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/new.cpp:17: multiple definition of`__cxa_pure_virtual'
    SdFat/SdFat.cpp.o:/Users/usename/Documents/Arduino/libraries/SdFat/SdFat.cpp:62: first defined here
    /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld: Disabling relaxation: it will not work with multiple definitions

What version of the product are you using?

sdfatlib20111205 and SdFatBeta20120327

On what operating system?

Mac OS X

Copied from original issue: arduino/Arduino#885

per1234 commented 2 years ago

This was fixed back in 2012. Unfortunately, the revision history for the SdFat library seems to have been discarded during the migration from Google Code to GitHub, but you can see it mentioned in the release announcement here:

https://forum.arduino.cc/t/sdfat-update/112604

Removed __cxa_pure_virtual to avoid conflicts with other libraries.