From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11650 invoked by alias); 13 Nov 2001 10:10:09 -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 11531 invoked from network); 13 Nov 2001 10:10:02 -0000 Received: from unknown (HELO wh2-19.st.uni-magdeburg.de) (141.44.162.19) by sourceware.cygnus.com with SMTP; 13 Nov 2001 10:10:02 -0000 Received: by wh2-19.st.uni-magdeburg.de (Postfix, from userid 1000) id 96B579F73; Tue, 13 Nov 2001 11:12:39 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15344.61975.20703.472676@wh2-19.st.uni-magdeburg.de> Date: Thu, 01 Nov 2001 21:14:00 -0000 From: Claudio Bley To: manjunath@iitbombay.org Cc: gcc-help@gcc.gnu.org Subject: Re: building gcc-2.95.2 with libstdc++-2.90.8 library on RH 6.2 In-Reply-To: <01111315180100.12119@everest> References: <01111315180100.12119@everest> X-Mailer: VM 6.96 under Emacs 21.1.1 X-SW-Source: 2001-11/txt/msg00015.txt.bz2 >>>>> "Manjunath" == Manjunath H Bhajantri writes: Manjunath> Hello all, Please help me! I am trying to build gcc Manjunath> version 2.95.2 with library libstdc++-2.90.8 on my Manjunath> red-hat linux 6.2 pc as one of my software installation Manjunath> requires that configuration. But I am not able to Manjunath> build properly. Because my HelloWorld.cxx " #include Manjunath> int main() { cout <<"Hello, Manjunath> World!"< /tmp/ccGZV1Sn.o: In function `main': Manjunath> /tmp/ccGZV1Sn.o(.text+0xa): undefined reference to Manjunath> `endl(ostream &)' /tmp/ccGZV1Sn.o(.text+0x17): Manjunath> undefined reference to `cout' Manjunath> /tmp/ccGZV1Sn.o(.text+0x1c): undefined reference to Manjunath> `ostream::operator<<(char const *)' Manjunath> /tmp/ccGZV1Sn.o(.text+0x27): undefined reference to Manjunath> `ostream::operator<<(ostream &(*)(ostream &))' Manjunath> collect2: ld returned 1 exit status I guess it is Manjunath> because of some namespace problem. I searched in the Manjunath> mailing list and found no help. If anybody has faced Manjunath> the same problem and solved it please send it to Manjunath> me. TIA, Manjunath. -- Manjunath H Bhajantri Software Manjunath> Engineer. Phonologies Pvt(India) Ltd. May I ask what your command line looks like? Doesn't 'g++ HelloWorld.cxx' work? Claudio