From: eandry@hubcap.clemson.edu (Eric L Andry)
Subject: Syntax errors in standard Header files?
29 Jan 1997 21:41:28 -0800
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <2.2.32.19970130035452.006804c0.cygnus.gnu-win32@hubcap.clemson.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: eandry@hubcap.clemson.edu
X-Mailer: Windows Eudora Pro Version 2.2 (32)
X-Priority: 1 (Highest)
Original-To: gnu-win32@cygnus.com
Original-Sender: owner-gnu-win32@cygnus.com

When I try to do a simple Hello world program like:
#include <iostream.h>

int main {
	cout << "Hello" << endl;
	cout.flush;
return 0;
}

I get these error messages:
bash$ gcc test.c -o test.exe
In file included from \DEV\CYGNUS\include\g++/iostream.h:31,
                 from test.c:1:
\DEV\CYGNUS\include\g++/streambuf.h:35: syntax error before string constant
In file included from \DEV\CYGNUS\include\g++/iostream.h:31,
                 from test.c:1:
\DEV\CYGNUS\include\g++/streambuf.h:37: syntax error before `}'
bash$

I haven't had problems until the last few releases.  Is it something I could
have done and I don't mean modifying the header files because I haven't
touched them!!

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\| Eric L. Andry                     |
\|                                   |
\| Computer Engineering              |
\| Clemson University                |
\| Clemson, South Carolina           |
\|                                   |
\| mailto: eandry@hubcap.clemson.edu |
\|   http://www.clemson.edu/~eandry/ |
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
