const MMD_init _temp_mmd_init[] = {
};
error C2059: syntax error : '}'
There's gotta be at least one element in the array. Not sure why this
compiles on other platforms, though.
Ron
> const MMD_init _temp_mmd_init[] = {
> };
Thanks, fixed.
> There's gotta be at least one element in the array. Not sure why this
> compiles on other platforms, though.
gcc hasn't problems with it. Dunno what the standard says.
> Ron
leo
Great, thanks!
>> There's gotta be at least one element in the array. Not sure why this
>> compiles on other platforms, though.
> gcc hasn't problems with it. Dunno what the standard says.
MS VC++ has an error code "C2466 - cannot allocate an array of
constant size 0," an indication the standard says that Thou Shalt
Not Do It.
Ron
>>> There's gotta be at least one element in the array. Not sure why this
>>> compiles on other platforms, though.
>> gcc hasn't problems with it. Dunno what the standard says.
> MS VC++ has an error code "C2466 - cannot allocate an array of
> constant size 0," an indication the standard says that Thou Shalt
> Not Do It.
Ah, yep:
$ info gcc
,--[ C Extensions ]--------------------------
| Arrays of Length Zero
| =====================
|
| Zero-length arrays are allowed in GNU C.
`--------------------------------------------
> Ron
leo