This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Help with gcc installation on AIX 5.3
- From: "Ferng, Andrew D" <andrew dot d dot ferng at boeing dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 27 Sep 2006 11:53:29 -0700
- Subject: RE: Help with gcc installation on AIX 5.3
Nope! Same error.
Does that path need to be defined in a enviornment variable somewhere?
Is there a way to check what paths are used in the binary? Maybe by
putting it in the gcc directory, it's different from what is compiled?
>gcc -L/acct/a/adf0000/gcc/usr/local/lib h.cpp
ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::Init()
ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::~Init()
ld: 0711-317 ERROR: Undefined symbol: std::cout
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char,
std::char_traits<char> >& std::operator<< <std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&, char const*)
ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
-----Original Message-----
From: Amit Choudhary [mailto:amit2030@yahoo.com]
Sent: Wednesday, September 27, 2006 11:43 AM
To: Ferng, Andrew D; gcc-help@gcc.gnu.org
Subject: Re: Help with gcc installation on AIX 5.3
Hi Ferng,
I don't think there is anything wrong with the program. But I guess the
compiler is not getting the correct library path. Try using the -L
compiler switch to direct it to your lib directory.
-L/acct/a/adf0000/gcc/usr/local/lib
Hope this helps.
Regards,
Amit
--- "Ferng, Andrew D" <andrew.d.ferng@boeing.com> wrote:
Sorry!
First email was missing subject.
----------------------------------------
>Hi,
>
> New user of GCC and am having trouble with the simplest hello world
> program.
>
> I'm on an IBM RS6000 running AIX 5.3 and using the 5.3 binary from
> UCLA:
> http://aixpdslib.seas.ucla.edu/
>
> My main directory is at /acct/a/adf0000/ from here, I created a gcc
> directory and then extracted the binaries. So in
> /acct/a/adf0000/gcc/usr/local/, I have the following directories:
> bin, include, info, lib, libexec, man
>
> There is already gcc 2.92 in the /usr/bin already so I need to
> redirect it to my 4.1.1.1 binary. I can't uninstall 2.92 since it is
> part of the OS build and theres NO chance of me getting that
approved.
> So I can only work with what's in my own directory.
>
> This is what the path is looking like:
> PATH=/acct/a/adf0000/gcc/usr/local/bin:/usr/bin:.......
>
> Now when I run a simple helloworld.cpp
>
> #include <iostream>
> using namespace std;
> Int main()
> {
> cout<<"hi world"<<endl;
> return 0;
> }
>
> I get this error:
>
> ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::Init()
> ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::~Init()
> ld: 0711-317 ERROR: Undefined symbol: std::cout
> ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char,
> std::char_traits<char> >& std::operator<< <std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
> ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> collect2: ld returned 8 exit status
>
>
> Anyone have an idea what I'm missing?
>
> Thanks!