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: Gcc Fails during ld phase for automatic instantiation


On Aug 13, 1999, chandra <cpuchaka@us.oracle.com> wrote:

>                  I Compiled template-using code with `-frepo'. The
> compiler generated files with the extension `.rpo' listing all of
> the template instantiations .  But when I try to create the final
> executable I see lot of undefined reference.

Are templates defined (not only declared) in all translation units
that use them?  This is required even when using -frepo.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them

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