Mail Archives: cygwin/1996/10/29/14:10:14
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".
- Raw text -