public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* ambiguous overload for operator [] on Cygwin_X86-64
@ 2014-04-24  3:15 Tatsuro MATSUOKA
  2014-04-24 19:48 ` Yaakov (Cygwin/X)
  0 siblings, 1 reply; 3+ messages in thread
From: Tatsuro MATSUOKA @ 2014-04-24  3:15 UTC (permalink / raw)
  To: cygwin

Hello

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?

Regards

Tatsuro

--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ambiguous overload for operator [] on Cygwin_X86-64
  2014-04-24  3:15 ambiguous overload for operator [] on Cygwin_X86-64 Tatsuro MATSUOKA
@ 2014-04-24 19:48 ` Yaakov (Cygwin/X)
  2014-04-25 10:47   ` Tatsuro MATSUOKA
  0 siblings, 1 reply; 3+ messages in thread
From: Yaakov (Cygwin/X) @ 2014-04-24 19:48 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ambiguous overload for operator [] on Cygwin_X86-64
  2014-04-24 19:48 ` Yaakov (Cygwin/X)
@ 2014-04-25 10:47   ` Tatsuro MATSUOKA
  0 siblings, 0 replies; 3+ messages in thread
From: Tatsuro MATSUOKA @ 2014-04-25 10:47 UTC (permalink / raw)
  To: cygwin, Yaakov (Cygwin/X)

--- On Fri, 2014/4/25, Yaakov (Cygwin/X) wrote:
> 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

With your patch, I could build WxGTK-2.8.12.  I can build gnuplot with the wxt terminal.
That is really I want to execute. 

Thanks a lot!

Tatsuro

--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-25 10:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-24  3:15 ambiguous overload for operator [] on Cygwin_X86-64 Tatsuro MATSUOKA
2014-04-24 19:48 ` Yaakov (Cygwin/X)
2014-04-25 10:47   ` Tatsuro MATSUOKA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).