This line causes a compiler error (well, three errors to be precise).
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
error C2133: 'dupcheck' : unknown size
[EDITx2] It compiles with Dev-C++ (but not with VC++?). Going to check some more things ...
[EDITx3] Pretty sure it should be the following code (but I have an unrelated problem that is Angband/65 only. :-(
Code:
u32b dupcheck[z_info->e_max];
error C2466: cannot allocate an array of constant size 0
error C2133: 'dupcheck' : unknown size
[EDITx2] It compiles with Dev-C++ (but not with VC++?). Going to check some more things ...
[EDITx3] Pretty sure it should be the following code (but I have an unrelated problem that is Angband/65 only. :-(
Code:
u32b *dupcheck; dupcheck = C_ZNEW(z_info->e_max, u32b);
Comment