I use the check button "V" on a sketch that already runs on my Arduino Mega. I get a compiler error, when I run it on my Windows PC. The report in orange is the following:
Arduino:1.8.11 (Windows 10), Board:"Arduino Uno"
HardwareSerial0.cpp.o (symbol from plugin): In function Serial':* *(.text+0x0): multiple definition of __vector_18'
libraries\XpressNet\XpressNet.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
Fout bij het compileren voor board Arduino Uno
When I do this on my Raspberry with exactly the same sketch. The check "V" runs without problems.
Has anybody a suggestion, how to solve it?
Kees
Not sure why you thought "tutorials" was a good place.
Your topic was Moved to it's current location / section as it is more suitable.
Could you also take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.
Share your code as the problems in code somewhere, without it no one could help.
Looking at GitHub - nzin/xpressnet_arduino: A Xpressnet protocol implementation for Arduino Mega 2560
Arduino Mega
You need an Arduino Mega 2560. Why? because xpressnet is a 9bit serial protocol. Standard Arduino SDK don't provide 9bits. But someone reimplement a 9bit Serial library (I put it into the arduinoSdk directory).
So you need to take HardwareSerial.h and HardwareSerial.cpp and replace these in the Arduino SDK (in /hardware/arduino/avr/cores/arduino/), and of course select Arduino 2560 in the Arduino IDE (in Tools/Board)
So my guess is that you did that step on the Pi but not on Windows.
You have an interrupt conflict. The error indicates (in layman's terms, basically ) that you have two hardware serial libraries that are conflicting.