I have two instance of the Arduino IDE open, each with a different source file (Arduino-0022). The host computer is Windows7 and the board is Arduino UNO (R2).
If I compile the first sketch and upload it to the Arduino board, it works fine.
When I switch to the 2nd IDE instance and use verify, I get the following errors:
/*
Having another IDE up with loaded compiled or running program produces these messages...
testbug2.cpp.o: In function setup': C:\Users\Ken\AppData\Local\Temp\build1880292211079347124.tmp/testbug2.cpp:11: multiple definition of setup'
testbug1.cpp.o:C:\Users\Ken\AppData\Local\Temp\build1880292211079347124.tmp/testbug1.cpp:11: first defined here
testbug2.cpp.o: In function loop': C:\Users\Ken\AppData\Local\Temp\build1880292211079347124.tmp/testbug2.cpp:14: multiple definition of loop'
testbug1.cpp.o:C:\Users\Ken\AppData\Local\Temp\build1880292211079347124.tmp/testbug1.cpp:14: first defined here
*/
This seems to indicate that the two separate running copies of the Arduino IDE are not independent, or at least the compiler output part is not independent.
When I go back to the IDE that uploaded a sketch, hit the Stop button, then my verify operation on the 2nd IDE functions correctly.
I have reproduced this by switching the order of upload and verify between the two IDEs. However, following this, the situation seems to be no longer reproducible at will, unless I take down both running IDEs and start fresh.
Is there a known confict between two running Arduino IDEs and the output produced by the compiler?