Check for compiler errors.  Not efficient but it works.