From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16346 invoked by alias); 13 Jan 2003 20:08:20 -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 16339 invoked from network); 13 Jan 2003 20:08:19 -0000 Received: from unknown (HELO m1.bezeqint.net) (192.115.106.45) by 209.249.29.67 with SMTP; 13 Jan 2003 20:08:19 -0000 Received: from bezeqint.net (bzq-140-114.red.bezeqint.net [62.219.140.114]) by m1.bezeqint.net (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id AJI12128; Mon, 13 Jan 2003 22:07:55 +0200 (IST) Message-ID: <3E231D0F.7010101@bezeqint.net> Date: Mon, 13 Jan 2003 20:08:00 -0000 From: "Itay 'z9u2K' Duvdevani" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 X-Accept-Language: en-us, en, he MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: RE: iostream.h problem Content-Type: text/plain; charset=ISO-8859-8-I; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00107.txt.bz2 iostream (and all ios headers, etc.) are part of the C++ STL (Standart Template Library). Trying to link against them using gcc will not work since these are C++ headers. g++ seems to be handeling this quite easly though... :) BTW, in the latest STL headers, iostream.h is not used anymore. all STL classes are encapsulated into a namespace called std. In order to use cin and cout etc. normally, do: // test.cpp: #include using namespace std; // invoke std into the global namespace // Compile/Link with g++, not gcc ! :] int main() { cout << "Mary had a little lamb"; // if you ommit line no. 2 (using namespace std), you could write: // std::cout << "Mary had a little lamb"; // this will work just fine. }