lua-users home
lua-l archive

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



Error 1 error C2143: syntax error : missing ';' before 'type' ln 60 col1 in c_hook.c
Error 2 error C2065: 'f' : undeclared identifier         ln 61 col1 in c_hook.c
Error 3 error C2065: 'f' : undeclared identifier         ln 63 col1 in c_hook.c
Error 4 error C2065: 'f' : undeclared identifier                ln 69 col 1 in c_hook.c
Error 5 error C2143: syntax error : missing ';' before 'type' ln 116 col 1 in c_hook.c
Error 6 error C2065: 'event' : undeclared identifier            ln 117 col 1 in c_hook.c
Error 7 error C2065: 'event' : undeclared identifier            ln 119 col 1 in c_hook.c



On Wed, Oct 5, 2011 at 4:00 PM, steve donovan <steve.j.donovan@gmail.com> wrote:
On Wed, Oct 5, 2011 at 3:52 PM, Oskar Forsslund
<matrixsmurfen@googlemail.com> wrote:
> that is indeed the file I'm using.
> I have tried with various exports but i still get the same errors.
> you think I should export all functions? the static ones can't be static
> when I export them..

Oh no, only that last luaopen_... function needs to be exported -
that's the only function Lua will call when loading the extension.

So that c_hook.c file, unchanged, gives errors on VS?  Can we see some
of the errors?

steve d.