This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Linking errors with gcc 3.1 on AIX 4.3.3
- From: Travis_Ackerman at cargill dot com
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 30 May 2002 15:58:57 -0500
- Subject: Linking errors with gcc 3.1 on AIX 4.3.3
Hello,
I have built gcc and g++ version 3.1 on an AIX 4.3.3 box. The build
seemed successful, but now I get these errors when trying to compile a
simple C++ program. I also have tried version 3.04 and received
similar errors.
Can anyone give me some help? I don't know if maybe I am missing a
compiler flag or what.
Here is the info for my gcc:
wkdev:/apps/gcc/gcc-3.1/>./config.guess
powerpc-ibm-aix4.3.3.0
wkdev:/home/tackerma/>gcc -v
Reading specs from
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.1/specs
Configured with: ../gcc-3.1/configure --enable-threads=aix
--enable-languages=c,c++ --disable-nls
Thread model: aix
gcc version 3.1
Here is the code I am compiling:
#include <string>
using namespace std;
int main()
{
string teststr = "test";
}
This is the output I get when I use gcc:
wkdev:/home/tackerma/>gcc main.cpp
ld: 0711-317 ERROR: Undefined symbol:
.std::allocator<char>::allocator[in-charge]()
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::basic_string[in-charge](char const*, std::allocator<char> const&)
ld: 0711-317 ERROR: Undefined symbol: .std::allocator<char>::~allocator
[in-charge]()
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::~basic_string
[in-charge]()
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
This is the output I get when I use g++:
wkdev:/home/tackerma/>g++ main.cpp
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::basic_string[in-charge](char const*, std::allocator<char> const&)
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::~basic_string
[in-charge]()
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
Any help is greatly appreciated.
Thanks,
Travis Ackerman
travis_ackerman@cargill.com