Pages: [1]   Go Down
Author Topic: sdfatlib + teensyduino + arduino v1.0.1 = compile error :(  (Read 1284 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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?
Logged

0
Offline Offline
Edison Member
*
Karma: 63
Posts: 1631
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Code:
/**
 * The __cxa_pure_virtual function is an error handler that is invoked when
 * a pure virtual function is called.
 */
#define USE_CXA_PURE_VIRTUAL 0
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks, that fixed it.
Logged

Pages: [1]   Go Up
Jump to: