From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13627 invoked by alias); 24 Apr 2014 19:48:04 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 13616 invoked by uid 89); 24 Apr 2014 19:48:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f176.google.com Received: from mail-ig0-f176.google.com (HELO mail-ig0-f176.google.com) (209.85.213.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 24 Apr 2014 19:48:02 +0000 Received: by mail-ig0-f176.google.com with SMTP id uy17so1328717igb.15 for ; Thu, 24 Apr 2014 12:48:00 -0700 (PDT) X-Received: by 10.50.43.170 with SMTP id x10mr729557igl.36.1398368880802; Thu, 24 Apr 2014 12:48:00 -0700 (PDT) Received: from [192.168.0.101] (S0106000cf16f58b1.wp.shawcable.net. [24.79.212.134]) by mx.google.com with ESMTPSA id ng8sm1458557igb.6.2014.04.24.12.47.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Apr 2014 12:47:59 -0700 (PDT) Message-ID: <53596A72.8040704@users.sourceforge.net> Date: Thu, 24 Apr 2014 19:48:00 -0000 From: "Yaakov (Cygwin/X)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: ambiguous overload for operator [] on Cygwin_X86-64 References: <510697.35308.qm@web101119.mail.kks.yahoo.co.jp> In-Reply-To: <510697.35308.qm@web101119.mail.kks.yahoo.co.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2014-04/txt/msg00549.txt.bz2 On 2014-04-23 22:15, Tatsuro MATSUOKA wrote: > I tried to build wxWidgets-3.0.0 on Cygwin. > For Cygwin x86, the build was successful. > > However, on Cygwin x86_64, the build failed at compling a cpp source file (src/common/appbase.cpp). > > ./include/wx/filename.h: In static member function 'static wxUniChar wxFileName::GetPathSeparator(wxPathFormat)': > ./include/wx/filename.h:473:43: error: ambiguous overload for 'operator[]' (operand types are 'wxString' and 'unsigned int') > { return GetPathSeparators(format)[0u]; } > > The code "(format)[0u]" seemed to be accepted g++-4.8.2 on Cygwin x86_64. > What the difference of g++ between that of Cygwin x86 and that of Cygwin x86_64? wxWidgets requires several patches to build and/or run correctly on Cygwin/X. I haven't looked at 3.0 yet, but for 2.8 this issue is fixed in my 2.8.12-cygwin64.patch: http://sourceforge.net/p/cygwin-ports/wxWidgets2.8/ Yaakov Cygwin/X -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple