On Wed, Nov 28, 2007 at 03:38:50PM -0500, Stephane Hockenhull 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?
No. You must link to libstdc++. More than this will break at runtime if you do not, e.g. streams. > this breaks C++ code using the STL when -fleading-underscore is used, other > templates compile and link just fine. This does not make sense. Compile libstdc++ with -fleading-underscore if that's the problem. You need to get libgcc too. -- Daniel Jacobowitz CodeSourcery