On 28/11/2007, Stephane Hockenhull <[EMAIL PROTECTED]> 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