G++ issues
Vardhan, Sundara (GE Infra, Energy)
sundara.vardhan@ge.com
Sun Nov 16 18:26:00 GMT 2008
Hi All
I was successful in getting gcc 4.3.2 compiled and installed on AIX 5.3.
I used the following configure to get that :
/cots/gnu/gcc-4.3.2/configure --prefix=/usr/local
--with-gmp=/cots/gnu/gmp-4.2.4 --with-mpfr=/cots/gnu/mpfr-2.3.2
--enable-shared --disable-nls --enable-__cxa_atexit --enable-threads=aix
--disable-multilib
I am using AIX linker and not the gnu ld. When compiling and linking c++
applications with g++, I get the following errors :
ld: 0711-317 ERROR: Undefined symbol: __cxa_pure_virtual
ld: 0711-317 ERROR: Undefined symbol: vtable for
__cxxabiv1::__si_class_type_info
ld: 0711-317 ERROR: Undefined symbol: vtable for
__cxxabiv1::__vmi_class_type_info
ld: 0711-317 ERROR: Undefined symbol: vtable for
__cxxabiv1::__class_type_info
ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
ld: 0711-317 ERROR: Undefined symbol: .operator delete[](void*)
ld: 0711-317 ERROR: Undefined symbol: .operator delete(void*)
ld: 0711-317 ERROR: Undefined symbol: .__cxa_allocate_exception
ld: 0711-317 ERROR: Undefined symbol: .__cxa_throw
ld: 0711-317 ERROR: Undefined symbol: ._Unwind_Resume
ld: 0711-317 ERROR: Undefined symbol: .std::terminate()
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: .operator new(unsigned long)
ld: 0711-317 ERROR: Undefined symbol: .__cxa_begin_catch
ld: 0711-317 ERROR: Undefined symbol: .__cxa_end_catch
ld: 0711-317 ERROR: Undefined symbol: .__register_frame_info_table
ld: 0711-317 ERROR: Undefined symbol: .__deregister_frame_info
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
Any pointers on how to fix it. I set the LIBPATH variable to point to
the /usr/local/lib where I had installed the gcc related libraries.
Thanks in advance.
With Regards
Vardhan
More information about the Gcc-help
mailing list