This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: DLL version 1.1.7: Problems with iostream.h
- To: "Chris Antcliff" <aguarious2 at hotmail dot com>, <cygwin at cygwin dot com>
- Subject: Re: DLL version 1.1.7: Problems with iostream.h
- From: "Daniel Stanciu" <cs961371 at hal dot cs dot tuiasi dot ro>
- Date: Thu, 25 Jan 2001 09:59:29 -0800
- References: <F174oRKbpG1KiaexdDA00002764@hotmail.com>
Hello,
cout is a C++ feature. When the extension of a file is c, the gcc
compiler assumes it is a c file, not a c++ one. The problem can be solved in
several ways:
1. rename it to xxxx.cc
2. use g++ instead of gcc
3. use gcc -x c++ xxxxx.c
Regards, Daniel.
----- Original Message -----
From: "Chris Antcliff" <aguarious2@hotmail.com>
To: <cygwin@cygwin.com>
Sent: Wednesday, January 24, 2001 7:48 PM
Subject: DLL version 1.1.7: Problems with iostream.h
> Running windows 2000 final build no services packs, when trying to compile
a
> simple hello world program
>
> #include <iostream.h>
>
> int main()
> {
> cout <<"Hello, World!";
> return 0;
> }
>
>
> the error I get when doing "gcc hello.c" is
>
> In file included from hello.c:1:
> /usr/include/iostream.h:31 streambuf.h: no such file or directory
>
> now after some research among friends they have no problems, but they also
> run under win9x. Has this come up before?
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
----------------------------------------------------------------------------
----
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple