This patch fixes the problem with the undefined constants. Apologies to Alex as I didn''t apply his patches yet. The fix is to just removed the _C from the end of the ones that won''t compile anymore. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Hi Roy Thanks for the patch. It fixes the problem with undefined constants, but I still get a compile error for the ART_ constants: src/RubyConstants.cpp:3555: error: cannot convert `const wchar_t*'' to `const char*'' for argument `1'' to `VALUE SWIG_FromCharPtr(const char*)'' I wonder if I''m seeing this because I''m using a unicode build of WxWidgets? alex Roy Sutton wrote:> This patch fixes the problem with the undefined constants. Apologies > to Alex as I didn''t apply his patches yet. The fix is to just removed > the _C from the end of the ones that won''t compile anymore. > > Roy > ------------------------------------------------------------------------ > > > C:\RubyDev>diff -b -u wxruby2_old/swig/RubyConstants.i wxruby2/swig/RubyConstants.i > --- wxruby2_old/swig/RubyConstants.i 2005-09-18 12:57:20.000000000 -0400 > +++ wxruby2/swig/RubyConstants.i 2006-03-30 00:34:50.582779900 -0500 > @@ -1896,13 +1896,13 @@ > > %constant const char *FILE_SELECTOR_DEFAULT_WILDCARD_STR = "*.*"; > > -%constant const char * ART_TOOLBAR = wxART_TOOLBAR_C; > -%constant const char * ART_MENU = wxART_MENU_C; > -%constant const char * ART_FRAME_ICON = wxART_FRAME_ICON_C; > -%constant const char * ART_CMN_DIALOG = wxART_CMN_DIALOG_C; > -%constant const char * ART_HELP_BROWSER = wxART_HELP_BROWSER_C; > -%constant const char * ART_MESSAGE_BOX = wxART_MESSAGE_BOX_C; > -%constant const char * ART_OTHER = wxART_OTHER_C; > +%constant const char * ART_TOOLBAR = wxART_TOOLBAR; > +%constant const char * ART_MENU = wxART_MENU; > +%constant const char * ART_FRAME_ICON = wxART_FRAME_ICON; > +%constant const char * ART_CMN_DIALOG = wxART_CMN_DIALOG; > +%constant const char * ART_HELP_BROWSER = wxART_HELP_BROWSER; > +%constant const char * ART_MESSAGE_BOX = wxART_MESSAGE_BOX; > +%constant const char * ART_OTHER = wxART_OTHER; > > %constant const char * ART_ADD_BOOKMARK = wxART_ADD_BOOKMARK; > %constant const char * ART_DEL_BOOKMARK = wxART_DEL_BOOKMARK; > > ------------------------------------------------------------------------ > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users
On Thu, 2006-03-30 at 00:41 -0500, Roy Sutton wrote:> This patch fixes the problem with the undefined constants. Apologies to > Alex as I didn''t apply his patches yet. The fix is to just removed the > _C from the end of the ones that won''t compile anymore.Yup. I have made this change, but have not yet checked it in due to the GetLabel problem mentioned in the other email. Kevin
On Wed, 2006-04-05 at 14:45 +0100, Alex Fenton wrote:> I still get a compile error for the ART_ constants: > > src/RubyConstants.cpp:3555: error: cannot convert `const wchar_t*'' to > `const > char*'' for argument `1'' to `VALUE SWIG_FromCharPtr(const char*)'' > > I wonder if I''m seeing this because I''m using a unicode build of WxWidgets?I saw the same problem. Changing those "char" to "wchar_t" fixed it. I haven''t checked it in yet. Kevin
On Sun, 2006-04-09 at 22:35 -0400, Kevin Smith wrote:> On Wed, 2006-04-05 at 14:45 +0100, Alex Fenton wrote: > > I still get a compile error for the ART_ constants: > > > > src/RubyConstants.cpp:3555: error: cannot convert `const wchar_t*'' to > > `const > > char*'' for argument `1'' to `VALUE SWIG_FromCharPtr(const char*)'' > > > > I wonder if I''m seeing this because I''m using a unicode build of WxWidgets? > > I saw the same problem. Changing those "char" to "wchar_t" fixed it. I > haven''t checked it in yet.Just to follow up on this, my checkin tonight took a different approach. See the Changelog. Kevin