Checksum calculation for XBee/Writing on serial code won't compile

Post the entire error message. You can get more information on the cause of the failure to compile if you enable verbose output while compiling. Go to File, Preferences and check the compilation box by Show verbose output during.