building gcc-2.95.2 with libstdc++-2.90.8 library on RH 6.2

Manjunath H Bhajantri
Thu Nov 1 12:18:00 GMT 2001

Hello all,
  Please help me! I am trying to build gcc version 2.95.2 with
library libstdc++-2.90.8 on my red-hat linux 6.2 pc as one of
my software installation requires that configuration.
  But I am not able to build properly. Because my HelloWorld.cxx " #include
<iostream.h> int main() { cout <<"Hello, World!"<<endl;}" is not compiling,
giving the error /tmp/ccGZV1Sn.o: In function `main':
/tmp/ccGZV1Sn.o(.text+0xa): undefined reference to `endl(ostream &)'
/tmp/ccGZV1Sn.o(.text+0x17): undefined reference to `cout'
/tmp/ccGZV1Sn.o(.text+0x1c): undefined reference to `ostream::operator<<(char
const *)' /tmp/ccGZV1Sn.o(.text+0x27): undefined reference to
`ostream::operator<<(ostream &(*)(ostream &))' collect2: ld returned 1 exit
                  I guess it is because of some namespace problem.  I searched
in the mailing list and found no help. If anybody has faced the same problem
and solved it please send it to me. TIA, Manjunath. -- 
Manjunath H Bhajantri
Software Engineer.
Phonologies Pvt(India) Ltd.

More information about the Gcc-help mailing list