From stdcxx-dev-return-2107-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Thu Sep 14 15:57:53 2006 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 5846 invoked from network); 14 Sep 2006 15:57:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2006 15:57:52 -0000 Received: (qmail 30350 invoked by uid 500); 14 Sep 2006 15:57:52 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 30335 invoked by uid 500); 14 Sep 2006 15:57:52 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 30324 invoked by uid 99); 14 Sep 2006 15:57:52 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 08:57:52 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=sebor@mymail.quovadx.com; spf=permerror X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: error (idunn.apache.osuosl.org: domain mymail.quovadx.com from 208.30.140.160 cause and error) Received: from ([208.30.140.160:32026] helo=moroha.quovadx.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 25/71-06020-07A79054 for ; Thu, 14 Sep 2006 08:52:27 -0700 Received: from qxvcexch01.ad.quovadx.com (qxvcexch01.ad.quovadx.com [192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id k8EForYR006233 for ; Thu, 14 Sep 2006 15:50:56 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 14 Sep 2006 09:51:15 -0600 Message-ID: <45098362.2040609@roguewave.com> Date: Thu, 14 Sep 2006 10:29:22 -0600 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: problem using static libraries on windows References: <18597F2B47F1394A9B309945EC72411282D54A@servex01.wamas.com> In-Reply-To: <18597F2B47F1394A9B309945EC72411282D54A@servex01.wamas.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 14 Sep 2006 15:51:15.0306 (UTC) FILETIME=[9C31CCA0:01C6D815] X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Duft Markus wrote: > hey there! > > i have a little problem (see STDCXX-287) with using stdcxx. The shared > version does work somehow, but iostreams seem to be broken, and the > static version cannot be linked because of billions of conflicts with > msvcprt. how can i use the static version without conflicting with > microsoft runtimes? Or even better, how can i get the shared version to > work? > > I'm working on the command-line (Interix, but using microsoft tools > (cl.exe & co)) and not in the VS IDE, so commandline tips would be > great... We don't have a command line only solution for MSVC at this time (it is there for all other compilers including gcc on Interix) but based on feedback like yours we're thinking about adding it. I've worked around it in the past by writing a simple little wrapper script for cl.exe to translate UNIX paths to Windows and invoked it through the GNUMakefile infrastructure just like any other compiler. IIRC, this was on Cygwin and very slow but it got the job done. Since you said that STDCXX-287 is not an issue, do you still need any help with the shared vs archive library issue? You can see the MSVC command line options we use to build stdcxx in the IDE. In general, the compiler options are something like this: -EHsc -MD -W3 -O2 -GR (or -MDd -Zi to enable debugging), and we pass /NODEFAULTLIB:msvcprt to the linker to avoid linking with the native implementation of the C++ Standard Library. That should prevent any conflicts. Let me know if there's anything else. Martin