delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/25/03:03:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <009501c086f8$909fff70$3afa99c2@websci.ro>
From: "Daniel Stanciu" <cs961371 AT hal DOT cs DOT tuiasi DOT ro>
To: "Chris Antcliff" <aguarious2 AT hotmail DOT com>, <cygwin AT cygwin DOT com>
References: <F174oRKbpG1KiaexdDA00002764 AT hotmail DOT com>
Subject: Re: DLL version 1.1.7: Problems with iostream.h
Date: Thu, 25 Jan 2001 09:59:29 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600

        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 AT hotmail DOT com>
To: <cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019