Ciao a tutti,
ho questo problema e non riesco a venirne fuori.
Voglio definire la dimensione di un array dentro una typedef. L´array é un array di una struct definita in precedenza (struct _priv_state_biquad).
Ho scritto all´inizio del programma #define max_N 10; (ho provato anche con
static const int max_N = 10, ma il programma dá errore alla riga dove uso la variabile max_N (ovvero state_biquad F_array[max_N]

Ecco il codice:

#define max_N 10;


typedef struct _priv_state_biquad{
float w_nm1; //w(n-1)
float w_nm2; //w(n-2)
}state_biquad;



typedef struct{

struct _priv_friction{
int N ;/**< Number of zeros and poles. NOTE: N Must be a multiple of 2 and greater than 0*/
float h ;/**< Density of the poles per frequency decads*/
state_biquad F_array[max_N];

} priv; /**< Instance of the substructure */

} t_friction_interactor;