You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2018. It is now read-only.
Due to weak issue (avr-llvm/clang#9) i have to add serialEvent in blink source code:
#line 1 "Blink.ino"
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
#include "Arduino.h"
void setup();
void loop();
#line 10
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// TODO : remove
// just for testing until ((weak)) is supported
void serialEvent() {
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
/tmp/arduino_test1/core.a(HardwareSerial.cpp.o):(.rodata._ZTI6Stream[typeinfo for Stream]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/tmp/arduino_test1/core.a(HardwareSerial.cpp.o):(.rodata._ZTI14HardwareSerial+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/tmp/arduino_test1/core.a(Print.cpp.o):(.rodata._ZTI5Print+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
collect2: error: ld returned 1 exit status
This seems to be something related to c/c++ mangling and linking..
The text was updated successfully, but these errors were encountered:
4ntoine
changed the title
Failed to link Arduino's HardwareSerial
undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
Oct 1, 2015
HardwareSerial.cpp
Due to weak issue (avr-llvm/clang#9) i have to add
serialEvent
in blink source code:compile .cpp into .o:
create archive
add archive index
link the whole app:
Error:
This seems to be something related to c/c++ mangling and linking..
The text was updated successfully, but these errors were encountered: