← Back to team overview

kicad-developers team mailing list archive

Re: Hating wx configuration more than ever...

 

On 05/07/2012 12:23 PM, Lorenzo Marcantonio wrote:
> Trying to build with wx 2.9.3... it was configured 'full optionals'
>
> Now it seems that there is no more an implicit conversion from const wxString to wxChar*!
>
> Example: in displlst.cpp we have
>
> static int SortItems( const wxString& item1, const wxString& item2 )
> {
>     return StrNumCmp( item1, item2, INT_MAX, true );
> }
>
> ... and it complains:
>
> common/displlst.cpp|150 col 51| error: cannot convert 'const wxString' to 'const wxChar* {aka const wchar_t*}' for argument '1' to 'int StrNumCmp(const wxChar*, const wxChar*, int, bool)'
> (for both parameters)
>
> Did I miss some magic wx configuration switch?
>

full optionals seems to your phrase, I don't see it in the config.log or

$ ./configure --help | less

output.  Please provide contents of your config.log so I can try and duplicate it here and
see what command line options you are truly passing to wx configure.

Here is mine on 64 bit Ubuntu lucid using a 1 month old SVN head:

../configure --with-gtk --prefix=/opt/wx2.9 --enable-debug_gdb --enable-debug
--enable-debug_info

Works fine with gcc 4.4.3. 

But I cannot tell you what a wxChar* means THIS MONTH.

The best thing the wxWidgets folks could do is to start with this line:

typedef std::string wxString

and then go fix all the compile errors after that.

wxString has served too masters and its biggest mistake was coming into existence.


Dick



Follow ups

References