Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1FD65D37F for ; Thu, 27 Sep 2012 19:00:46 +0000 (UTC) Received: (qmail 38705 invoked by uid 500); 27 Sep 2012 19:00:45 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 38622 invoked by uid 500); 27 Sep 2012 19:00:45 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 38612 invoked by uid 99); 27 Sep 2012 19:00:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2012 19:00:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Mathias_Bauer@gmx.net designates 213.165.64.23 as permitted sender) Received: from [213.165.64.23] (HELO mailout-de.gmx.net) (213.165.64.23) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 27 Sep 2012 19:00:37 +0000 Received: (qmail invoked by alias); 27 Sep 2012 19:00:16 -0000 Received: from d192231.adsl.hansenet.de (EHLO [192.168.2.250]) [80.171.192.231] by mail.gmx.net (mp071) with SMTP; 27 Sep 2012 21:00:16 +0200 X-Authenticated: #17242763 X-Provags-ID: V01U2FsdGVkX1+R9owcH9+RnslJ+wJzGAwYxJwYFh4Qm1xDQKy3Vu Q9fgxMFds6gTOm Message-ID: <5064A238.8010005@gmx.net> Date: Thu, 27 Sep 2012 21:00:08 +0200 From: Mathias Bauer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: ooo-dev@incubator.apache.org Subject: Re: build svtools with debug References: <506325E0.5090602@t-online.de> <50632AFD.808@me.com> In-Reply-To: <50632AFD.808@me.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Am 26.09.2012 18:19, schrieb Armin Le Grand:> > Index: Library_hatchwindowfactory.mk > =================================================================== > --- Library_hatchwindowfactory.mk (revision 1389804) > +++ Library_hatchwindowfactory.mk (working copy) > @@ -43,6 +43,7 @@ > tk \ > tl \ > vcl \ > + stl \ > $(gb_STDLIBS) \ > )) > > @Pedro: Is this a solution? Maybe when using debug, extra stuff using > stl to verify things (remember data in a vector?) gets compiled. I do > not know how bad it is to always link against stl for > hatchwindowfactory, even without debug build. What do You think? Your assumption is a good one, I remember seeing this in other cases in the past. But there are other possible reasons. Using a template library might be fine without linking against its binary part, if the compiler decides to instantiate the templates in the library using the template. But sometimes the compiler decides not to do that and requires external linkage, so you have to link against the library. This may depend on compiler settings in a very subtle way, so using DEBUG might be able to trigger such a difference. That's the "beauty" of templates. :-) Especially with a compiler like the MSVC compiler that has some serious defects in this regard (I once wrote a blog about the joy of linking against symbols that contain templates on GulFOSS. Those where the days...). Regards, Mathias (who currently works with Objective-C and would love to have problems like this instead of using a programming language that neither has templates nor namespaces. But hey, at least it has closures. :-))