This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
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:06:34 -0700
- Subject: Help with gcc installation on AIX 5.3
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!