This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: template instantiations in archive files?
- To: "Daniel X. Pape" <dpape at canis dot uiuc dot edu>
- Subject: Re: template instantiations in archive files?
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 03 Oct 1998 00:01:45 -300
- Cc: egcs at cygnus dot com
- References: <199810020601.BAA24060@tanelorn.canis.uiuc.edu>
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