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]
Other format: [Raw text]

Re: why are stl template classes not mangled as other classes andtemplates


On 28/11/2007, Stephane Hockenhull <shockenhull@niceberg.com> wrote:
> On Wednesday 28 November 2007 14:01, 'Daniel Jacobowitz' wrote:
> > On Wed, Nov 28, 2007 at 01:56:58PM -0500, Stephane Hockenhull wrote:
> > > hence my question: where is it?
> >
> > In libstdc++.  You have to link with libstdc++ to use the STL, for
> > many reasons including this one.
>
> 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.
>
> this breaks C++ code using the STL when -fleading-underscore is used, other
> templates compile and link just fine.

IIRC, -D_GLIBCXX_EXTERN_TEMPLATE=0 might work, but it's neither
documented nor supported.

Jon


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