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

Visual Studio compilers don't support C99 (which allows declaring variables at an arbitrary place inside a block, not just at the beginning).

Try compiling it as C++ (rename the file to .cpp or set the options appropriately (Project settings, Configuration Properties, C/C++, Advanced; Compile As C++ Code)).