This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Undefined symbol: vtable error with 3.2.2/3.3 on AIX 5.1
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 11 Jun 2003 18:55:43 -0400
- Subject: Re: Undefined symbol: vtable error with 3.2.2/3.3 on AIX 5.1
>>>>> Albert Chin writes:
Albert> Ok, this helped for building shared libraries on AIX with GCC.
Albert> Anything special needs to happen for C++ static libraries with
Albert> templates?
You need to instantiate the templates explicitly on AIX.
Albert> I'm trying to build LyX 1.3.2 on AIX 4.3.2 with GCC 3.2.2. It uses
Albert> lots of templates but does not create shared libraries for it's
Albert> components. It creates libtool convenience libraries, essentially ar
Albert> archives of several component object files. The final link step
Albert> produces lots of errors:
Albert> ld: 0711-317 ERROR: Undefined symbol: typeinfo name for MathInset
Albert> ld: 0711-317 ERROR: Undefined symbol: typeinfo name for MathDimInset
Albert> ld: 0711-317 ERROR: Undefined symbol: typeinfo name for MathNestInset
Albert> ld: 0711-317 ERROR: Undefined symbol: typeinfo name for MathSqrtInset
Albert> ld: 0711-317 ERROR: Undefined symbol: typeinfo name for MathFracbaseInset
Albert> ld: 0711-317 ERROR: Undefined symbol: typeinfo name for MathFracInset
I have seen similar problems, but I am not aware of it being a
show-stopper. There still are gaps in G++'s support for systems without
weak symbols where it does not emit definitions for symbols.
David