From: ebacon AT oanet DOT com (Edmund Bacon) Subject: Re: syntax error? 29 Oct 1996 14:10:14 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199610291705.KAA01501.cygnus.gnu-win32@cronus.oanet.com> References: <199610290130 DOT RAA15811 AT cygnus DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Original-To: gnu-win32 AT cygnus DOT com In-Reply-To: <199610290130.RAA15811@cygnus.com> X-Mailer: Forte Agent .99f/32.299 Original-Sender: owner-gnu-win32 AT cygnus DOT com On Mon, 28 Oct 1996 17:30:41 -0800, you wrote: > >Here's the file: > >misc.h >-------------------------------- >#ifndef misc_h >#define misc_h > >const int false =3D 0; >const int true =3D 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? David: Under g++ 'false' and 'true' are constants of type=20 'bool' (also under Borland C++ 5.0). The follwing program will compile quite nicely with g++ with no complaints, however gcc will complain about a syntax error before var. -------------------------------------------- int main() { bool var =3D false; return 0; } -------------------------------------------- Zathros is used to being beast of burden to other peoples needs. Very sad= life. Probably have very sad death ... But, at least there is symmetry. - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".