[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wx-win2.5




Hey,

v0n0 wrote:
Javier Kohen wrote:


I think it's a bug in your code. I'm just guessing here (it might be
easier if I a saw the line that failed), but you're probably casting a
L"string" to a const wxString variable/method parameter. Try calling
the wxString constructor directly (I guess you need the first
candidate from the list below).

GCC is getting picker (as it follows standards more closely) and I
guess the WX folks didn't test their 2.5 release with GCC 3.4 or 4.0
(you don't say which one you're using).


I tried these possibilities:
1) mainframe = new wxFrame(0,-1,"Geek Simulator
1.0",wxDefaultPosition,wxSize(720,500),wxMINIMIZE_BOX | wxSYSTEM_MENU |
wxCAPTION);

2) mainframe = new wxFrame(0,-1,wxString("Geek Simulator
1.0"),wxDefaultPosition,wxSize(720,500),wxMINIMIZE_BOX | wxSYSTEM_MENU |
wxCAPTION);

but none of them seems right. I checked wx sources in string.h and in
fact there is a ctor with a const char[] parameter! It should be ok even
with the first try. With 2.4 I could use the number one without problems.
Suggestions?

I guess no suggestions, sorry. I'll see if I can get wxWidgets to compile with gcc-4.0 today and I'll try to take a closer look.


--
Javier Kohen <jkohen@users.sourceforge.net>
ICQ: blashyrkh #2361802
Jabber: jkohen@jabber.org



Reply to: