Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

gnu/linux (gentoo) + gcc/g++3.3.6

<< < (2/2)

me22:
Gah, you fixed it wrong :x

It now says:
configmanager.cpp: In member function `void ConfigManager::Read(const
   wxString&, ConfigManagerContainer::IntToStringMap*)':
configmanager.cpp:1133: error: call of overloaded `wxString(const char*)' is
   ambiguous
/usr/include/wx-2.6/wx/string.h:670: error: candidates are:
   wxString::wxString(const wxWCharBuffer&) <near match>
/usr/include/wx-2.6/wx/string.h:643: error:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx-2.6/wx/string.h:640: error:
   wxString::wxString(const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:632: error:
   wxString::wxString(int) <near match>

You changed it to:
wxString(curr->Value()).Mid(1).ToLong(&tmp);
which is wrong.  That kind of thing -- getting a wxString from tinyXML -- is precisely what _U() was added to do.  It works fine in non-unicode, because wxChar is a char, but in unicode it tries to make a wchar_t wxString from a char*, which it can't do without more help.

src/sdk/configmanager.cpp line 1133 should be
_U(curr->Value()).Mid(1).ToLong(&tmp);

mandrav:

--- Quote from: me22 on December 02, 2005, 11:50:27 pm ---Gah, you fixed it wrong :x

--- End quote ---

And is this a reason to be mad?
Try updating again...

rickg22:
Hmmm I'm starting to see a pattern here...

me22: GAH! A bug!
Mandrav: Fixed. Update your SVN.
me22: GAH! Your bugfix has a bug!
Mandrav: Fixed. Update your SVN.

Apologies to Ceniza for his 'i'm starting to see a pattern here' posts. :P

yop:
Deja vu

me22:

--- Quote from: mandrav on December 03, 2005, 12:13:45 am ---
--- Quote from: me22 on December 02, 2005, 11:50:27 pm ---Gah, you fixed it wrong :x

--- End quote ---

And is this a reason to be mad?
Try updating again...

--- End quote ---

It's no reason to be mad, just it makes it seem like you didn't read my rather detailed post about what needed to be changed and why.

Gah! It compiled now! :D

I've got the codeblocks-svn ebuild done too : http://bugs.gentoo.org/show_bug.cgi?id=89533 =)

Navigation

[0] Message Index

[*] Previous page

Go to full version