On 3/20/07, Francesco Montorsi <[EMAIL PROTECTED]> wrote: > Hi John, > > unfortunately it looks like recent UTF8 changes in wx tree gives > troubles to wxLua: > > /home/frm/work/wxLua/bk-deps g++ -c -o wxlua_lib_wxlcallb.o > -I.pch/wxprec_wxlua_lib -I../modules/wxbind/setup -I../modules -I./.. > -I/home/frm/work/wxLua/./modules/lua/include > -I/usr/local/lib/wx/include/gtk2-ansi-debug-static-2.9 > -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES > -D__WXDEBUG__ -D__WXGTK__ -pthread -g -O2 -g -O0 ./wxlua/src/wxlcallb.cpp > ../modules/wxlua/include/wxlstate.h: In function 'const wxCharBuffer > wx2lua(const wxString&)': > ../modules/wxlua/include/wxlstate.h:84: error: ambiguous overload for > 'operator=' in 'buffer = wxString::c_str() const()' > /usr/local/include/wx-2.9/wx/buffer.h:116: note: candidates are: > wxCharBuffer& wxCharBuffer::operator=(const char*) > /usr/local/include/wx-2.9/wx/buffer.h:116: note: > wxCharBuffer& wxCharBuffer::operator=(const wxCharBuffer&) > make[1]: *** [wxlua_lib_wxlcallb.o] Error 1
Ugh. I don't have 2.9 now, but it's the line below, "buffer = ..."? if ((buffer.data() == NULL) && !wxstr.IsEmpty()) buffer = wxConvertWX2MB(wxstr.c_str()); // old way that mostly works I can get the current wxWidgets CVS head tonight and see what wxConvertWX2MB returns these days. It used to be char*, but I guess it's wxString::c_str() now? Maybe just a (char*) cast would do the trick. > I don't know if it's better to wait that UTF8 changes "stabilizes" or > not... in any case I've passed the last 2 hours to update the wxLua > bakefiles to use wxWidgets official presets (my big patch to them was > accepted and now wxLua bakefiles can be made [slightly] smaller because > some work is offloaded to wx presets) but I won't commit my changes to > CVS until I can test the build system completely... Great. > Besides the small size cutdown of wxLua bakefiles there is also another > advantage from my last update: bakefile can now generate msvc2005 > project files and thus I could add them to wxLua CVS (this maybe could > fix the problems encountered by Klaas recently)... Nah, those problems were that I hadn't tested with VC and GCC worked fine with that code. Thanks, John Labenski ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users