Re: G++ issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: gcc-help-owner@xxxxxxxxxxx
> [mailto:gcc-help-owner@xxxxxxxxxxx] On Behalf Of Vardhan, Sundara (GE 
> Infra, Energy)
> Sent: 16 November 2008 16:15
> To: GCC-help
> Subject: G++ issues[Scanned]
> 
> 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
> 

Hi,

Posting which software you are trying to compile and the content of your
Makefile would help.
Anyway, this guy had the same issue with xerces:
http://bytes.com/forum/thread85208.html
and solved it. Would this help?
Also, check in your Makefile the libraries you are linking (-lstdc++
etc...) and be sure you really point to your new compiled gcc libraries.
Beware that on AIX you may have other versions of gcc installed (that
came with the system).

Regards,
Eric Fernandez


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux