template function compiling problem (alphaev5-linux)
Alexandre Oliva
oliva@dcc.unicamp.br
Mon Sep 28 16:32:00 GMT 1998
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
More information about the Gcc
mailing list