DLL version 1.1.7: Problems with iostream.h

Mumit Khan khan@NanoTech.Wisc.EDU
Wed Jan 24 20:33:00 GMT 2001


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



More information about the Cygwin mailing list