This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: DLL version 1.1.7: Problems with iostream.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]