I am programming C on a VAX. I am trying to define a structure using an extern variable.
struct RF_MOVES rf_move_struct_p[rf_max_moves_ex]
The value, rf_max_moves_ex, is derived by reading a system logical early in a calling program. The value is then assigned to an extern variable. The structure is then defined in one of the calling program using the extern variable. When I compile this, I get the following message:
In the declaration of "rf_move_struct_p", "rf_max_moves_ex" is not constant, but occurs in a context that requires a constant expression.
I am pretty sure you can do this in VB, but that is not an option, looking for a way to accomplish this using C. Any suggestions would be greatly appreciated.