lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Steven Elkins wrote:

[generating binding from fltk.i]
Adding path '../../'
Module 'bind' loaded
Module 'bind-lua5' loaded
Module 'bind-lua' loaded
Reading fltk.i
6201 lines, 32056 tokens
Processing fltk.i
New name 'val' of type 'int val[6]'        (I used -d)
fltk.i (183) at token '}' : ';' expected
Generating LUA binding
[compiling bind-fltk-ext.cxx]
bind-fltk-ext.cxx: In function `int lua_fltk__Fl_Widget__callback(lua_State*)':
bind-fltk-ext.cxx:32: error: `lua_to_Fl_Widget' undeclared (first use this function) bind-fltk-ext.cxx:32: error: (Each undeclared identifier is reported only once for each function it appears in.)
gmake: *** [bind-fltk-ext.o] Error 1
rm fltk.i
sge:764$ I got the make file to make a copy of fltk.i so I could look at it. lines 181-183 are:

typedef struct label_t {
       int val[6];
} label_t;

Now it looks like you've found a more serious problem. Could you send me by email your fltk.i file ? That would really help me to fix that problem. Thanks in advance and thanks also for trying hard to make this work :)

Now would probably be a good time for me to say that I'm perfectly
happy to use the copy of bind-fltk.cxx you provide in the
distribution; I'll let go of this the instant you indicate I should.

Actually you shouldn't, I forgot to regenerate it for version 0.9.1 so it's still the one generated with the bugged 0.9 binding generator :( I'll make a version 0.9.2 with the correct pre-generated file soon ...

Vincent Penne.