Where did these files come from? If you created them on another robot, or in OfficeLite, you could have a KSS version mismatch, or your robot might not have the same Tech Packages that the source machine did.
Or, it's possible that you have critical variables in the $CONFIG.DAT or other global file of your source machine, and did not copy those files to the destination robot.
Also, sometimes when loading lots of files into a robot, if they need variables that don't exist yet in $CONFIG.DAT, sometimes you have to fix $CONFIG.DAT and then "trick" the robot into re-compiling each program by adding a blank line or something in the Editor. The rule is, always load $CONFIG.DAT or other global files first.
You need to examine what the exact error is in the files that are failing to compile. That should give you an idea which variable or subroutine is missing.