This is the mail archive of the gcc-bugs@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]

Re: hppa2.0w-hp-hpux11.00: linkage problems with explicit instantiation


On Jun 21, 2001, Markus Werle <markus@lufmech.rwth-aachen.de> wrote:

> I have a little problem with templates which are explicitly
> instantiated.

You mean *implicitly* instantiated, I suppose.

> Any idea where this goes wrong (gcc, binutils, hp-ld)?

It's actually the binary format: without weak symbols, GCC must not
emit implicit template instantiations, so you have to explicitly
instantiate data members.  Hmm....  But this doesn't appear to be the
case: you're getting undefined data symbols...  Do you have a testcase?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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