Strange error #1173
Labels
Component: IDE
The Arduino IDE
Component: Toolchain
The tools used for compilation and uploading to Arduino boards
Type: Duplicate
Another item already exists for this topic
I get this compile error in the Arduino software:
path on my computer lol/arduino-1.0.2/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr6/crtm2560.o: In function
__vector_default': (.vectors+0xdc): relocation truncated to fit: R_AVR_13_PCREL against symbol
__vector_55' defined in .text.__vector_55 section in core.a(HardwareSerial.cpp.o)Under the conditions details here: http://arduino.cc/forum/index.php/topic,135670
The same error does not appear when I turn the private members into global variables and the public methods into loose functions. So it's something in the way that Arduino handles classes and libraries building on other libraries. And serious programmers obviously want libraries that build on other libraries ... that's the whole idea of inheritance and therefore OOP out the window if you can't do that in Arduino. I'm about done working with this robotics team and somebody else is replacing me, but they'll probably want to know about this issue too, so I'm submitting this.
The text was updated successfully, but these errors were encountered: