This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: stl and -fexternal-templates: bug
- To: Kasper Peeters <K dot Peeters at damtp dot cam dot ac dot uk>
- Subject: Re: stl and -fexternal-templates: bug
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 17 Dec 1998 21:14:51 -0200
- Cc: egcs at egcs dot cygnus dot com
- References: <13945.34861.297959.634901@hopf.amtp.cam.ac.uk>
On Dec 17, 1998, Kasper Peeters <K.Peeters@damtp.cam.ac.uk> wrote:
> When I compile C++ code and use -fexternal-templates together with
> '#pragma interface/implementation', egcs complains about missing
> '#pragma interface' in the STL headers (and subsequently it fails to
> do its job properly). Is this supposed to work or has support for
> these pragma constructions been dropped meanwhile?
I don't think it was ever supposed to work. The docs say that you
should add the #pragmas to *all* files that declare or define
templates, so it looks like you'll have to start using some other
template instantiation mechanism.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil