Displaying 1 result from an estimated 1 matches for "postinit_wxspinctrl".
2005 Aug 04
2
Next swig problem
...r 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).