The compiler problem sounds like it could be mismatched braces. But that's only a guess without seeing the code.