Eine Datei test.ino
#include <avr/io.h>
#include <avr/interrupt.h>
ISR ( TIMER2_OVF_vect ) {
}
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
lässt sich sofort kompilieren. Wenn ich die Datei aber folgendermaßen zerlege:
test.ino
#include "best.c"
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
und best.c
#include <avr/io.h>
#include <avr/interrupt.h>
ISR ( TIMER2_OVF_vect )
{
}
erhalte ich folgende Fehlermeldung:
Arduino: 1.6.7 (Windows 8.1), Board: "Arduino/Genuino Uno"
sketch\test.ino.cpp.o: In function `__vector_9':
sketch/best.c:5: multiple definition of `__vector_9'
sketch\best.c.o:sketch/best.c:5: first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
Fehler beim Kompilieren.
Was klappt hier nicht? Über Eure Hilfe würde ich mich sehr freuen!!! Danke!