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: is #pragma interface still needed ?


>>>>> Martin v Loewis <martin@mira.isdn.cs.tu-berlin.de> writes:

 >>  > and now does a little more, as well (controlling generation of template
 >>  > instantiations).
 >> 
 >> No.

 > No, it does not more than originally, or no, it does not control
 > generation of template instantiations?

Both.

 > If the latter, is then the documentation (Node: Template
 > Instantiation) correct, which says

 >   4. Add `#pragma interface' to all files containing template
 >      definitions.  For each of these files, add `#pragma implementation
 >      "FILENAME"' to the top of some `.C' file which `#include's it.
 >      Then compile everything with `-fexternal-templates'.

Yes, it's correct.  But without -fexternal-templates, which should never be
used, #pragma i/i have no effect on templates.

Jason


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