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>
- Subject: Re: DLL version 1.1.7: Problems with iostream.h
- From: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Date: Wed, 24 Jan 2001 22:33:42 -0600 (CST)
- cc: cygwin at cygwin dot com
On Thu, 25 Jan 2001, Chris Antcliff wrote:
> 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
This is because your installation is broken. The G++ include files
such as iostream.h and streambuf.h etc should *never* be in
/usr/include, but rather get installed in /usr/include/g++-3 by
default (at least for gcc that's distributed with Cygwin 1.1.7).
I don't know how you managed this, but you'll have to *remove* all
offending files from /usr/include and reinstall gcc.
Regards,
Mumit
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple