Linker warning with templates
Martin v. Loewis
martin@mira.isdn.cs.tu-berlin.de
Wed Mar 31 23:46:00 GMT 1999
> ../orb/libmico2.2.4.a(object.o): warning: previous common is here
> ../orb/libmico2.2.4.a(ir.o): warning: multiple common of
> `ExceptVar<CORBA::SystemException> type_info node'
>
> As far as I am concerned, the compiler creates the code for the
> templates every time they get instantiated.
AFAIK, this can happen with explicit instantiations in header
files. Just as defining functions in header files is ill-formed,
multiple explicit instantiations of the same template-id are not
allowed.
Hope this helps(*),
Martin
(*) If not, you should make a complete bug report.
More information about the Gcc
mailing list