On Wed, 4 Aug 2004, John Hanley wrote:
I just received a "parse error at end of input" when compiling my code, but
am unsure why. It lists the line as the very last line of my .c file "}"My
code compiled fine yesterday, and I only made some minor adjustments today.
I am using the DJGPP compiler.
Is this parse error indicative of anything particular?
Ideas?
It is usually a missing } or ; that causes this. The compiler will line up
the braces incorrectly because one is missing but it will not realize the
problem until it gets to the end of the translation unit. It is sort of
like doing up the buttons on a shirt. If you miss a button hole you don't
realize it until you get to the bottom and find the last button does not
line up with the last button hole.
--
Send e-mail to: darrell at cs dot toronto dot edu
Don't send e-mail to
vi************@whitehouse.gov