This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: building gcc-2.95.2 with libstdc++-2.90.8 library on RH 6.2
- To: manjunath at iitbombay dot org
- Subject: Re: building gcc-2.95.2 with libstdc++-2.90.8 library on RH 6.2
- From: Claudio Bley <bley at cs dot uni-magdeburg dot de>
- Date: Tue, 13 Nov 2001 11:12:39 +0100
- Cc: gcc-help at gcc dot gnu dot org
- References: <01111315180100.12119@everest>
>>>>> "Manjunath" == Manjunath H Bhajantri <manjunath@iitbombay.org> 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> <iostream.h> int main() { cout <<"Hello,
Manjunath> World!"<<endl;}" is not compiling, giving the error
Manjunath> /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