From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19048 invoked by alias); 7 Jan 2005 14:19:13 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 19001 invoked from network); 7 Jan 2005 14:19:04 -0000 Received: from unknown (HELO ROSMIME03.enterprise.veritas.com) (143.127.131.4) by sourceware.org with SMTP; 7 Jan 2005 14:19:04 -0000 Received: from ROSXCHCON2.enterprise.veritas.com (unverified) by ROSMIME03.enterprise.veritas.com (Content Technologies SMTPRS 4.3.12) with ESMTP id ; Fri, 7 Jan 2005 08:19:03 -0600 Received: from ROSXCHCLN5.enterprise.veritas.com ([10.82.152.194]) by ROSXCHCON2.enterprise.veritas.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 7 Jan 2005 08:19:03 -0600 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: iostream not visible in g++ Date: Fri, 07 Jan 2005 14:19:00 -0000 Message-ID: <71E911AFA5EEC0439ECFA770B8E9FD8003AE85DC@rosxchcln5.enterprise.veritas.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Martin York" To: "deepak prabhas soi" , X-OriginalArrivalTime: 07 Jan 2005 14:19:03.0716 (UTC) FILETIME=[D70FE640:01C4F4C3] X-SW-Source: 2005-01/txt/msg00034.txt.bz2 =20 Without the code its hard to say, but I bet its because all those objects are in the standard namespace. Try using std::cout std::endl etc. Or adding a 'using' declaration in your source file. NB Never put a 'using' declaration in a header file. Martin -----Original Message----- From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of deepak prabhas soi Sent: 07 January 2005 06:18 To: gcc-help@gcc.gnu.org Subject: iostream not visible in g++ Hi, I am running the gcc 3.4.2 . The .c files are compiling properly but when using g++ for compilation of c++ files,I can't compile even a single line file. Infact it gives problem in the inclusion of iostream.h file. what can be error. How can i make these standard libraries visible to program.I am getting the error as =20=20 iostream: No such file or directory /hm/tmp.cpp: In function `int main()': /hm/tmp.cpp:17: error: `cout' undeclared (first use this function) /hm/tmp.cpp:17: error: (Each undeclared identifier is reported only once for each function it appears in.) /hm/tmp.cpp:17: error: `endl' undeclared (first use this function) Can anybody please help me, how can i make these standard libraries to be visible. I need it urgently. regards Prabhas =3D=3D=3D=3D=3D If facts don't fit theory, change the facts -Albert Einstein =09=09 __________________________________ Do you Yahoo!?=20 The all-new My Yahoo! - Get yours free!=20 http://my.yahoo.com=20 =20