This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: why are stl template classes not mangled as other classes andtemplates
On Wednesday 28 November 2007 16:25, Andrew Pinski wrote:
> On 11/28/07, Stephane Hockenhull <shockenhull@niceberg.com> wrote:
> > is there a way to disable this behaviour for stl templates and have them
> > compiled every time?
> >
> > I can't find a command line option for it.
>
> It is a source level option. Remove all the use of "extern template"
> in the headers of libstdc++.
>
> -- Pinski
YES! works! thank you very much!
there is a define to disable them in bunch: _GLIBCXX_EXTERN_TEMPLATE
g++ -c -save-temps -fleading-underscore -D_GLIBCXX_EXTERN_TEMPLATE=0 test.cpp
-o test.o
templates get compiled in just fine, with correct underscore, no need to
recompile libstdc++
*drops on the floor side-walking in circle whooping a la Homer S.*
I added a comment to bug for the work around
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34166
but left it unconfirmed, should it be closed, just documented, or the feature
automatically disabled if someone overrides the platform's default prefix
rule ??
--
Stephane Hockenhull
SSC-Studios.com