The actual error is often far away from the line where the error is reported. The error can even be in a different file. This is especially true for syntax errors (missing a quote, comma, etc..), and sometimes if you have undefined types. I can't help without more info, but what you can try is removing code (comment it out) until you're left with the minimum amount of code necessary to reproduce the error. Maybe just including the header with no other code will reproduce the error? That will help you narrow down the problem.