This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: precomiled template-class member functions
- To: Bohdan Vlasyuk <bohdan at kivc dot vstu dot vinnica dot ua>
- Subject: Re: precomiled template-class member functions
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 31 Jul 2001 09:09:52 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20010731140528.A11782@kivc.vstu.vinnica.ua>
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