delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/10/29/07:20:48

From: kuku AT gilberto DOT physik DOT rwth-aachen DOT de (Christoph P. Kukulies)
Subject: Re: syntax error?
29 Oct 1996 07:20:48 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199610291255.NAA23357.cygnus.gnu-win32@gilberto.physik.rwth-aachen.de>
References: <199610290130 DOT RAA15811 AT cygnus DOT com>
Mime-Version: 1.0
Original-To: jeffers AT redrose DOT net (David Jeffers)
Original-Cc: gnu-win32 AT cygnus DOT com
X-Mailer: Mutt 0.48.1
In-Reply-To: <199610290130.RAA15811@cygnus.com>; from "David Jeffers" on Oct 28, 1996 17:30:41 -0800
Original-Sender: owner-gnu-win32 AT cygnus DOT com

David Jeffers writes:
> 
> Here's the file:
> 
> misc.h
> --------------------------------
> #ifndef misc_h
> #define misc_h
> 
> const int false = 0;
> const int true = 1;
> 
> #endif
> --------------------------------
> 
> Here's the error message:
> 
> $ in file included from buffer.h:24,
> $		   from buffer.cpp:25
> $ misc.h:18 syntax error before 'false'
> $ misc.h:19 syntax error before 'true'
> 
> 
> Can someone explain this error message or where the
> syntax error is?

true/false are reserved words in C++ .

> 
> -- 
> 
>     David Jeffers	    
> <jeffers AT redrose DOT net>
> 
> -
> For help on using this list, send a message to
> "gnu-win32-request AT cygnus DOT com" with one line of text: "help".

-- 
--Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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