This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Undefined symbol: vtable error with 3.2.2/3.3 on AIX 5.1


On Thu, Jun 05, 2003 at 10:41:53AM -0400, David Edelsohn wrote:
> >>>>> Joerg Richter writes:
> 
> Joerg> I came to the conclusion, that AIX-ld with option -bexpall does not export
> Joerg> all symbols as it should. The missing symbols are always one of typeinfo,
> Joerg> typename or vtable. I dont know why. Perhaps G++ marks them somewhat wrong.
> 
> 	Please re-read the AIX ld documentation.  -bexpall does not and
> should not export all symbols.  You need to generate an explicit export
> list to export symbols beginning with an underscore, as GCC does when
> building libstdc++.

Ok, this helped for building shared libraries on AIX with GCC.
Anything special needs to happen for C++ static libraries with
templates?

I'm trying to build LyX 1.3.2 on AIX 4.3.2 with GCC 3.2.2. It uses
lots of templates but does not create shared libraries for it's
components. It creates libtool convenience libraries, essentially ar
archives of several component object files. The final link step
produces lots of errors:
  ld: 0711-317 ERROR: Undefined symbol: typeinfo name for MathInset
  ld: 0711-317 ERROR: Undefined symbol: typeinfo name for MathDimInset
  ld: 0711-317 ERROR: Undefined symbol: typeinfo name for MathNestInset
  ld: 0711-317 ERROR: Undefined symbol: typeinfo name for MathSqrtInset
  ld: 0711-317 ERROR: Undefined symbol: typeinfo name for MathFracbaseInset
  ld: 0711-317 ERROR: Undefined symbol: typeinfo name for MathFracInset

-- 
albert chin (china@thewrittenword.com)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]