exe\testapp.c(164) : error C2143: syntax error : missing ';' before 'type'
Why can't I declare a variable there (on line 164)? Using nmake compiler in Windows DDK.
BTW with line 164 commented out there are no errors or warnings at all. The code below is inside of a function (VOID _cdecl main( ULONG argc, PCHAR argv[] )).
Apparently it's C89 behavior and MSVC++ 2003 doesn't support C99. If you enclose the declaration in braces it works, but any references to that variable must be within the braces as well.
Why can't I declare a variable there (on line 164)? Using nmake compiler in Windows DDK.
BTW with line 164 commented out there are no errors or warnings at all. The code below is inside of a function (VOID _cdecl main( ULONG argc, PCHAR argv[] )).
Apparently it's C89 behavior and MSVC++ 2003 doesn't support C99. If you enclose the declaration in braces it works, but any references to that variable must be within the braces as well.