Can I ask if you’re able to compile any sketch without error on that machine? Say, one of the example sketches from File > Examples > Built-In Examples in the Arduino IDE? I do not think this is a Cayenne issue so much as an issue with the Arduino IDE on Windows XP.
When I researched the error message it seems to be XP specific: