This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]