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]

Re: precomiled template-class member functions


On Jul 31, 2001, Bohdan Vlasyuk <bohdan@kivc.vstu.vinnica.ua> wrote:

> Recenty I was hit by the problem with precomiled template-class member
> functuion. The problem is: It doesn't work.. I've tested it with gcc
> 3.0 and gcc 2.95.3, and the result was similar -- linker refused to
> find precomiled functions which reside in other file..

> I think it's know problem, because I've found a reference saying

Yep.  See the `Template Instantiation' node in the GCC manual.

> Are there any plans to change it in future??

This can only be effectively changed when the `export' keyword is
implemented.

> How can I find any workarounds, considering that I don't want to
> recomplile whole prgram each time I do small change in templated
> class..

Looks like you're looking for explicit instantiations, then.

-- 
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]