Skip to content

Strange error #1173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BenMcLean opened this issue Dec 14, 2012 · 1 comment
Closed

Strange error #1173

BenMcLean opened this issue Dec 14, 2012 · 1 comment
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

Comments

@BenMcLean
Copy link

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.

@ffissore ffissore added the New label Feb 27, 2014
@cmaglie
Copy link
Member

cmaglie commented Apr 26, 2014

Duplicate of #1071

@cmaglie cmaglie closed this as completed Apr 26, 2014
@cmaglie cmaglie added IDE and removed New labels Apr 26, 2014
@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label Jul 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants