lua-users home
lua-l archive

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


2011/11/20 PooshhMao <pooshhmao@gmail.com>:
> However when I try to run your example I get the error: declaration
> specifier expected near 'FILE'

Sorry, I forgot that you need to add in ffi.cdef the following declarations:

      struct _IO_FILE;
      typedef struct _IO_FILE FILE;

Actually I didn't notice the problem because I tested the script in
GSL Shell where they are already declared.

Francesco