Go Down

Topic: sdfatlib + teensyduino + arduino v1.0.1 = compile error :( (Read 1 time) previous topic - next topic


tried to update to the new version of arduino but i ran into some compilation errors, most likely caused by the combination of sdfatlib & the teensyduino code.

this is the compilation error i got:
Code: [Select]
core.a(new.cpp.o): In function `__cxa_pure_virtual':
D:\arduino-1.0.1\hardware\teensy\cores\teensy/new.cpp:17: multiple definition of `__cxa_pure_virtual'
SdFat\SdStream.cpp.o:D:\arduino-1.0.1\libraries\SdFat/SdStream.cpp:24: first defined here
d:/arduino-1.0.1/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

any advice?


Edit SdFatConfig.h and set USE_CXA_PURE_VIRTUAL to zero like this at about line 107.

Code: [Select]

* The __cxa_pure_virtual function is an error handler that is invoked when
* a pure virtual function is called.

Go Up