X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=N+sEpRgtGXdTrsTFxKu2HlPnaYtgciBJly77LJcVKNE esz8kR0kj9ataPUn2Fywu4F/Almk5C70Qb0FbsMJ9uxDjt/TxkoZdB7DHKEF7LdS VSRJxD3q+ZfW7+wNPhPVEWAC3yfH8/64DFK7ks6HPyk3q1WqicERbS5W+YpAsT9A = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=7PJMpMtTUEaQHTE67i8ylB5yV6E=; b=ET+S0lAk3v78orAXg RLEemp//mrHypl+sUmEA18i7OAJSaG0DelUIM+MNHwUkb7c82qfb9QvbiO+senw5 ogKTiZ+8/LfC58T281I7fviTixb7r88kYf3ODg6EMx8JILj0Dl9Mo5BPmw5JCgQA mYuKwMSZlJj1Ib8sxe6+rcnfU8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 X-Received: by 10.50.43.170 with SMTP id x10mr729557igl.36.1398368880802; Thu, 24 Apr 2014 12:48:00 -0700 (PDT) Message-ID: <53596A72.8040704@users.sourceforge.net> Date: Thu, 24 Apr 2014 14:48:02 -0500 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 AT cygwin DOT com Subject: Re: ambiguous overload for operator [] on Cygwin_X86-64 References: <510697 DOT 35308 DOT qm AT web101119 DOT mail DOT kks DOT yahoo DOT co DOT 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 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