This is the mail archive of the
mailing list for the GCC project.
Re: is #pragma interface still needed ?
>>>>> Martin v Loewis <firstname.lastname@example.org> writes:
>> > and now does a little more, as well (controlling generation of template
>> > instantiations).
> No, it does not more than originally, or no, it does not control
> generation of template instantiations?
> 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.