After getting past the icon problem I ran into my next problem:
SpinCtrl.cpp
src/SpinCtrl.cpp(1141) : error C2065: ''cWxSpinCtrl'' :
undeclared identifier
src/SpinCtrl.cpp(1141) : error C2228: left of ''.klass'' must
have
class/struct/union type
src/SpinCtrl.cpp(1147) : error C2371: ''cWxSpinCtrl'' :
redefinition;
different basic types
...
The reason for this is the way it trying to use something before
declaring it:
extern "C" void PostInit_wxSpinCtrl(void)
{
#ifndef __WXGTK__
rb_define_method(cWxSpinCtrl.klass, "set_selection",
VALUEFUNC(_wrap_wxSpinCtrl_SetSelection), -1);
#endif
}
extern swig_class cWxControl;
swig_class cWxSpinCtrl;
If I move the PostInit part down below the declaration all works fine
(compilation wise).
Roy Sutton wrote:> After getting past the icon problem I ran into my next problem: > > SpinCtrl.cpp > src/SpinCtrl.cpp(1141) : error C2065: ''cWxSpinCtrl'' : undeclared identifier > src/SpinCtrl.cpp(1141) : error C2228: left of ''.klass'' must have > class/struct/union type > src/SpinCtrl.cpp(1147) : error C2371: ''cWxSpinCtrl'' : redefinition; > different basic typesI''m clearing out my inbox. Tonight''s patches removed some icky stuff from spinctrl.i, so please let me know whether or not the new head works for you. Thanks, Kevin
The new head now compiles without problems (other than the Icon.cpp issue just mentioned). I will do more testing now. Kevin Smith wrote:> Roy Sutton wrote: > >> After getting past the icon problem I ran into my next problem: >> >> SpinCtrl.cpp >> src/SpinCtrl.cpp(1141) : error C2065: ''cWxSpinCtrl'' : undeclared >> identifier >> src/SpinCtrl.cpp(1141) : error C2228: left of ''.klass'' must have >> class/struct/union type >> src/SpinCtrl.cpp(1147) : error C2371: ''cWxSpinCtrl'' : redefinition; >> different basic types > > > I''m clearing out my inbox. Tonight''s patches removed some icky stuff > from spinctrl.i, so please let me know whether or not the new head > works for you. > > Thanks, > > Kevin > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > >