I have two PC:s, one with WIN 10 and one with WIN XP.
Compiling on the one with WIN 10 is no problem however sometimes the program that compiles OK on WIN 10 does not compile at all on the WIN XP-machine.
Sometimes it helps deliberately putting in a fault, compile, remove the fault and then compile again. Sometimes it works deliberately compiling with the wrong Arduino. Then, going back to the correct one it works. Mostly it works but all of a sudden it doesn't. I have tried to find a pattern when it does not compile but I haven't found any.
I have tried using two earlier versions of the Arduino-program in th XP-machine but the phenomenon remains.
I am using Arduino 1.8.1 in both machines. The XP-version is the last released for XP.
The fault text coming up is the following:
collect2.exe: error: ld returned 5 exit status
exit status 1
Error compiling for board Arduino Nano.
Any suggestions would be appreciated.