This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: stl and -fexternal-templates: bug
- To: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Subject: Re: stl and -fexternal-templates: bug
- From: Ruslan Shevchenko <Ruslan at Shevchenko dot Kiev dot UA>
- Date: Fri, 18 Dec 1998 03:29:43 +0200
- CC: Kasper Peeters <K dot Peeters at damtp dot cam dot ac dot uk>, egcs at egcs dot cygnus dot com
- References: <13945.34861.297959.634901@hopf.amtp.cam.ac.uk> <orlnk6uzro.fsf@araguaia.dcc.unicamp.br>
- Reply-To: rssh at grad dot kiev dot ua
Alexandre Oliva wrote:
> 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.
>
Hmm, let I asc next question :
Is it possible use "#pragma interface/implementation" template
instaniation
mechanism with STL ?
The answer will be "NO"
next question:
It would be possiple to use this mechanism, after addind
#ifdef USE_PRAGMA_INTERFACE
"pragma interface"
#endif
to *all* STL headers ?
>
> --
> 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