I've encountered similar problems. I traced mine to a 700 line function by
slowly removing and re-adding parts of the application. When I simply
split the function into to separate 350 line functions I was able to
compile. It took me a about a day and half to track it down though.