lua-users home
lua-l archive

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

It was thus said that the Great Geoff Leyland once stated:
> On 6/10/2011, at 4:18 AM, Thomas Buergel wrote:
> >> 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).
> I've fixed these (I hope), thanks for the report Oskar and the for the
> interpretation Thomas.  Anyone know how to get gcc to complain about this? 
> I tried -std=c89 and it just complained about the c++ comment near the end
> of the file (also fixed)

  That's because C++ style comments are not allowed in C89.  I think you
might want to try "gcc -pedantic -ansi" or "gcc -pedantic -std=c89".