From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22132 invoked by alias); 16 Mar 2003 21:32:58 -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 22064 invoked from network); 16 Mar 2003 21:32:58 -0000 Received: from unknown (HELO lifesupport.shutdown.com) (66.93.79.177) by sources.redhat.com with SMTP; 16 Mar 2003 21:32:58 -0000 Received: (from llewelly@localhost) by lifesupport.shutdown.com (8.11.2/8.11.2) id h2GLTrB11597; Sun, 16 Mar 2003 13:29:53 -0800 (PST) To: "R.Karthik Narayanan" Cc: gcc-help@gcc.gnu.org Subject: Re: Help Needed Reply-To: gcc-help@gcc.gnu.org References: <1047843514.3e74d2baaed78@mail.cs.ucf.edu> From: LLeweLLyn Reese Date: Mon, 17 Mar 2003 03:02:00 -0000 In-Reply-To: <1047843514.3e74d2baaed78@mail.cs.ucf.edu> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-03/txt/msg00188.txt.bz2 "R.Karthik Narayanan" writes: > Hi, > I am R.Karthik Narayanan, I am student at UCF. I have been trying to do > programming in lunix using GCC. I find that my C programs work without any > errors. But the problems seems to happend when i do GCC for C++ programs. It > fails to find the file iostream.h. iostream.h is not part of ISO C++. The name was changed to (no suffix) during the standarization process which was completed in 1998. (Although the iostream.h => iostream change was final long before most of the other changes.) Since you don't know about , I'm going to assume you don't know about the std namespace. During the standarization process, all standard C++ library names, including cout, endl, string, etc, were moved into the std namespace. Here is an example: #include #include using std::cout; using std::endl; int main() { cout << "Hello world" << endl; } > But, there is no error nad the program > compiles. I think there is some confusion. If iostream is required, but not found, the program will not compile. You must copy and paste the exact error messages you get, and the code that reproduces them (or a simplified version thereof). If you don't do that, people can only guess at your problem, and are less able to help you. > But when i try to execute it using ./name of compiled file, there is > no reponse, the program doesn't run. Can u please guide me as to how solve this > problem. [snip]