www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/16/01:12:43.1

Sender: nate AT cartsys DOT com
Message-ID: <3626C528.FC3BACC9@cartsys.com>
Date: Thu, 15 Oct 1998 21:01:44 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486)
MIME-Version: 1.0
To: djgpp AT delorie DOT com, silkwodj AT my-dejanews DOT com
Subject: Re: Parse errors
References: <Pine DOT OSF DOT 4 DOT 05 DOT 9810150604520 DOT 1537-100000 AT sable DOT ox DOT ac DOT uk>
Reply-To: djgpp AT delorie DOT com

George Foot wrote:
> 
> On Thu, 15 Oct 1998 silkwodj AT my-dejanews DOT com wrote:
> 
> > C:\Work\pcx >gcc pcxview3.cc pcx.o myscrn1.o myscrn2.cc -o pcxview.exe
> > pcxview3.cc:71: parse error at end of input.
> >
> > Now my pcxview3.cc file has only 70 lines in it!  What's also baffling is the
> > file pcx.o was compiled a couple of weeks ago, but now I can't compile it
> > again. I get the same kind of error message for the end of its 276 lines of
> > code.
> 
> It probably is a missing brace; look again out for mismatched
> braces.  Do you indent your code?  That helps you to keep track
> of the brace depth.

If you use Emacs, the indenting is useful.  I can't count the number of
times I've been confused when the indenting seems to screw up, only to
find it was a syntax error in my code (missing semicolons, mismatched
braces/parens, etc).  The only disadvantage is it's somewhat difficult
to set up an indentation style different from the default (not a problem
for me, I happen to like GNU style).  I think there may also be commands
which show a brace/paren/bracket's match.
-- 

Nate Eldredge
nate AT cartsys DOT com


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019