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: template instantiations in archive files?


Daniel X Pape <dpape@canis.uiuc.edu> writes:

> I think that compiling with -frepo can help, but since I don't think I
> can link the rpo files into the libraries, I am not sure how to proceed.

As suggested in the info file, if you want to create a library with
all needed templates instantiated, you should first try to link the
components of the library into an executable.  This will probably end
up failing because of missing symbols, but all available templates
will be instantiated, so that, when you create the library, the object 
files will be complete.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



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