From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8207 invoked by alias); 28 Nov 2007 22:37:04 -0000 Received: (qmail 8199 invoked by uid 22791); 28 Nov 2007 22:37:04 -0000 X-Spam-Check-By: sourceware.org Received: from relais.videotron.ca (HELO relais.videotron.ca) (24.201.245.36) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Nov 2007 22:36:56 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-disposition: inline Content-type: text/plain; charset=iso-8859-1 Received: from shockenhull.sscs ([70.81.105.186]) by VL-MH-MR002.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0JS80001OMTID1E1@VL-MH-MR002.ip.videotron.ca> for gcc@gcc.gnu.org; Wed, 28 Nov 2007 17:36:55 -0500 (EST) From: Stephane Hockenhull To: gcc@gcc.gnu.org Subject: Re: why are stl template classes not mangled as other classes andtemplates Date: Thu, 29 Nov 2007 00:11:00 -0000 User-Agent: KMail/1.9.1 Cc: Jonathan Wakely References: <200711261333.54555.shockenhull@niceberg.com> <200711281538.50976.shockenhull@niceberg.com> <4348dea50711281424s6a5b9340he75302cafc051e1b@mail.gmail.com> In-reply-to: <4348dea50711281424s6a5b9340he75302cafc051e1b@mail.gmail.com> Message-id: <200711281739.54509.shockenhull@niceberg.com> X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2007-11/txt/msg00814.txt.bz2 On Wednesday 28 November 2007 17:24, Jonathan Wakely wrote: > On 28/11/2007, 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? > > > > 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 thanks, found it grepping for "extern template" it does work, worst case if it breaks again we'll stick with the gcc version we're currently using until we find some work around :P -- Stephane Hockenhull SSC-Studios.com