Opened 16 years ago

Closed 16 years ago

#774 closed Defect (fixed)

Compilation error: conversion from 'const char [53]' to 'const wxString' is ambiguous

Reported by: narcelio Owned by: romw
Priority: Blocker Milestone: 6.2
Component: Client - Build Version: 6.2.27
Keywords: Cc:

Description

Error while compiling:

clientgui $ make

g++ -DHAVE_CONFIG_H -I. -I..  -I../lib -I../api -I../db -I../client -I../tools -I../sched -I../lib/mac -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__    -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -fpermissive -fno-rtti -fno-exceptions  -O2 -pipe -s -mtune=core2 -I/usr/include -I/usr/include/openssl -pthread -c -o boinc_gui-WelcomePage.o `test -f 'WelcomePage.cpp' || echo './'`WelcomePage.cpp
In file included from WelcomePage.cpp:43:
hyperlink.h:15: warning: #pragma implementation for 'hyperlink.h' appears after file is included
WelcomePage.cpp: In member function 'void CWelcomePage::CreateControls()':
WelcomePage.cpp:224: error: conversion from 'const char [53]' to 'const wxString' is ambiguous
/usr/include/wx-2.8/wx/string.h:692: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.8/wx/string.h:682: note:                 wxString::wxString(int) <near match>
WelcomePage.cpp: In member function 'void CWelcomePage::OpenWCG(wxCommandEvent&)':
WelcomePage.cpp:528: error: conversion from 'const char [55]' to 'wxString' is ambiguous
/usr/include/wx-2.8/wx/string.h:692: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.8/wx/string.h:682: note:                 wxString::wxString(int) <near match>
make: *** [boinc_gui-WelcomePage.o] Error 1

Attachments (1)

wxstring_conversion.patch (1.2 KB) - added by narcelio 16 years ago.
Patch to fix the error

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by narcelio

Attachment: wxstring_conversion.patch added

Patch to fix the error

comment:1 Changed 16 years ago by Nicolas

Already fixed in [16230]; maybe nobody remembered to merge it to the 6.2 branch?

comment:2 Changed 16 years ago by Nicolas

Resolution: fixed
Status: newclosed

Fixed in [16530] and [16531].

Note: See TracTickets for help on using tickets.