Problems with G++ - Undefined symbol: . - Aix

This is a discussion on Problems with G++ - Undefined symbol: . - Aix ; I have installed the following gcc-cplusplus-4.0.0-1.aix5.3.ppc.rpm libstdcplusplus-4.0.0-1.aix5.3.ppc.rpm libstdcplusplus-devel-4.0.0-1.aix5.3.ppc.rpm but I can't compile a hello world program. I get ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream std::char_traits >& std: perator > (std::basic_ostream >&, char const*) ld: 0711-345 Use the -bloadmap or -bnoquiet ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: Problems with G++ - Undefined symbol: .

  1. Problems with G++ - Undefined symbol: .

    I have installed the following

    gcc-cplusplus-4.0.0-1.aix5.3.ppc.rpm
    libstdcplusplus-4.0.0-1.aix5.3.ppc.rpm
    libstdcplusplus-devel-4.0.0-1.aix5.3.ppc.rpm

    but I can't compile a hello world program. I get

    ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream std::char_traits >& std:perator<< >
    (std::basic_ostream >&, char const*)
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
    information.
    collect2: ld returned 8 exit status

    Is 4.0.0 the best version of g++ (I found it on the AIX linux tool kit).

    Andrew

  2. Re: Problems with G++ - Undefined symbol: .

    "Andrew Black (delete obvious bit)" writes:

    > ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream > std::char_traits >& std:perator<< >
    > (std::basic_ostream >&, char const*)
    > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
    > information.
    > collect2: ld returned 8 exit status


    Most often this is result of incorrect link line.
    Use correct GCC front end to link C++ code ('g++', *not* 'gcc').

    If you did use 'g++', post your entire link command line.

    Cheers,
    --
    In order to understand recursion you must first understand recursion.
    Remove /-nsp/ for email.

  3. Re: Problems with G++ - Undefined symbol: .

    Paul Pluzhnikov wrote in
    news:m3hcw0zc17.fsf@somewhere.in.california.localh ost:

    > If you did use 'g++', post your entire link command line.


    Thanks for the reply.
    I simply did
    g++ h.cc

  4. Re: Problems with G++ - Undefined symbol: .


    Andrew Black (delete obvious bit) wrote:
    > Paul Pluzhnikov wrote in
    > news:m3hcw0zc17.fsf@somewhere.in.california.localh ost:
    >
    > > If you did use 'g++', post your entire link command line.

    >
    > Thanks for the reply.
    > I simply did
    > g++ h.cc

    Did the command work for you? I have also been facing the same problem
    with the g++ downloaded from IBM's linux tool kit webpage?


  5. Re: Problems with G++ - Undefined symbol: .

    "Ravindra" wrote in
    news:1166180314.405751.254140@80g2000cwy.googlegro ups.com:

    > Did the command work for you? I have also been facing the same problem
    > with the g++ downloaded from IBM's linux tool kit webpage?
    >


    Afraid I gave up with the 4.0.0 I got from the IBM site. I downloaded the
    prebuilt 4.1.1 from
    ftp://aixpdslib.seas.ucla.edu/pub/CONTENTS_RS_5.3

    I find it conforting that you are having problems with the one at IBM.



  6. Re: Problems with G++ - Undefined symbol: .


    Andrew Black (delete obvious bit) wrote:
    > "Ravindra" wrote in
    > news:1166180314.405751.254140@80g2000cwy.googlegro ups.com:
    >
    > > Did the command work for you? I have also been facing the same problem
    > > with the g++ downloaded from IBM's linux tool kit webpage?
    > >

    >
    > Afraid I gave up with the 4.0.0 I got from the IBM site. I downloaded the
    > prebuilt 4.1.1 from
    > ftp://aixpdslib.seas.ucla.edu/pub/CONTENTS_RS_5.3
    >
    > I find it conforting that you are having problems with the one at IBM.


    Newayz..I found out what is wrong with the 4.0.0 RPM from the IBM's
    website..supposedly the GCC code should have been compiled on a machine
    with some assembler patch installed. Read
    http://gcc.gnu.org/install/specific.html#x-ibm-aix for more accurate
    information.
    I too downloaded from ftp://aixpdslib.seas.ucla.edu ,but this does not
    have 64-bit support!
    So, I got the source for 4.1.1 and compiled it. As of now, it seems to
    be working...but letz c..

    -Ravindra.


+ Reply to Thread