Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 89546 invoked from network); 21 Apr 2006 19:03:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Apr 2006 19:03:34 -0000 Received: (qmail 39652 invoked by uid 500); 21 Apr 2006 19:03:25 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 39586 invoked by uid 500); 21 Apr 2006 19:03:24 -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 39570 invoked by uid 99); 21 Apr 2006 19:03:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Apr 2006 12:03:24 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Apr 2006 12:03:23 -0700 Received: from bco-exchange.bco.roguewave.com (bco-exchange.bco.roguewave.com [172.19.31.48]) by moroha.quovadx.com (8.13.4/8.13.4) with ESMTP id k3LJ30Ww026136 for ; Fri, 21 Apr 2006 19:03:01 GMT Received: from [10.70.3.113] (10.70.3.113 [10.70.3.113]) by bco-exchange.bco.roguewave.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id 2YG6DYFS; Fri, 21 Apr 2006 13:00:04 -0600 Message-ID: <44492C70.60603@roguewave.com> Date: Fri, 21 Apr 2006 13:03:12 -0600 From: Martin Sebor 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: release configurations (8d, 8s, 12d, 12s) fail to compile on Windows, MSVC 7.1 References: <4D6A8407B7AC6F4D95B0E55C4E7C4C6203FEACAE@exmsk.moscow.vdiweb.com> In-Reply-To: <4D6A8407B7AC6F4D95B0E55C4E7C4C6203FEACAE@exmsk.moscow.vdiweb.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Anton Pevtsov wrote: > Unfortunately, I didn't build release configurations during long periof > of time. > > But I suspect this commit: > http://svn.apache.org/viewcvs?rev=374551&view=rev [...] You're most likely right. > It seems that there is a conflict between declarations of the swprintf > from stdio.h and this one. > > The stdio.h contains > > ... > /* This non-standard definition exists for historical reasons to avoid > breaking old code */ > _CRTIMP int __cdecl swprintf(wchar_t *, const wchar_t *, ...); > #ifdef __cplusplus > /* For C++ we have an overloaded version with the standard definition */ > extern "C++" _CRTIMP int __cdecl swprintf(wchar_t *, size_t, const > wchar_t *, ...); > #endif > ... Ugh. What a mess! > > It is possible to avoid the error (but not warning for dll's) using > extern "C++" instead of extern "C" to allow overloading, but I am not > sure that this way is correct. I suspect that's what we'll have to do. I.e., hardcode this into our header for Windows/MSVC. > The same is true for vswprintf and wctomb functions. Let me look into it. Strangely, I don't see it in our nightly builds. Martin