This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: template function compiling problem (alphaev5-linux)
Toshinao Ishii <ici@qua.crl.melco.co.jp> writes:
> Alexandre Oliva wrote:
> : This won't work. Even when you use -frepo, the definition of a
> : template *must* be visible in every translation unit that uses that
> : template. This can only be worked around if you explicitly
> Is the implementation "invisible" even if poi02.C is included in main02.C ?
No. In this case, it will be visible, since the definitions will have
been provided. Whether they are read from an #included file or not is
irrelevant.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil