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: stl and -fexternal-templates: bug


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


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