I'm trying to create a struct with an array inside. The array size, I'm hoping, should be set at compile time. That is it's hard coded but uses a variable so I can change it easily in the code. Problem is I'm getting linker errors when I use const int in the header ahead of the struct definition. Here's my code:
from the header file:
const int t_Module_qInternalParams =64;
typedef struct Module{
double internalParams[t_Module_qInternalParams];
} t_Module;