Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "Chris Antcliff" , References: Subject: Re: DLL version 1.1.7: Problems with iostream.h Date: Thu, 25 Jan 2001 09:59:29 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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" To: 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 > > 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