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


        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


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