From: John L. <jla...@gm...> - 2006-02-03 15:37:43
|
On 2/3/06, k. holwerda <kla...@nl...> wrote: > > I get this error. I think it is actually a C++ problem, it looks like an > empty initialization is not allowed. > Maybe use: > > static WXLUAMETHOD builtinList[1]; > > or some dummy?? > > c:\data\art2d\wxluacvs\wxLua\modules\wxbindstc\src\wxstc_builtin.cpp(33) > : error C2059: syntax error : '}' > c:\data\art2d\wxluacvs\wxLua\modules\wxbindstc\src\wxstc_builtin.cpp(34) > : error C2501: 'count' : missing storage-class or type specifiers > c:\data\art2d\wxluacvs\wxLua\modules\wxbindstc\src\wxstc_builtin.cpp(34) > : error C2065: 'builtinList' : undeclared identifier > > > WXLUAMETHOD* wxLuaGetBuiltinList_wxstc(size_t &count) > { > static WXLUAMETHOD builtinList[] =3D > { > }; > count =3D (sizeof(builtinList)/sizeof(builtinList[0])); > return builtinList; > } Heh, woops, gcc doesn't complain about that, fixed now. Regards, John Labenski |