R
ravi.sathyam
Hi,
so basically I define a struct as follows:
struct speechSegment {
float coeff_Array[10];
float period;
float energy;
};
struct speechSegment segment = { /*I fill this struct with info */};
and later on in my main(), I declare a static array called coef[10],
and basically try to assign each value of coef[10] to the corresponding
value of coeff_Array
for(i = 0; i < Cmpst; i++) {
coef = (int)(segment.coeff_Array); -----------> Getting
compiler error on this line
}
But when I try to compile I get a compiler error on the aforementioned
line.
The error says "error: expression must have pointer-to-object type"
Any help as to why I'm getting this error will be appreciated..
Thanks,
Ravi
so basically I define a struct as follows:
struct speechSegment {
float coeff_Array[10];
float period;
float energy;
};
struct speechSegment segment = { /*I fill this struct with info */};
and later on in my main(), I declare a static array called coef[10],
and basically try to assign each value of coef[10] to the corresponding
value of coeff_Array
for(i = 0; i < Cmpst; i++) {
coef = (int)(segment.coeff_Array); -----------> Getting
compiler error on this line
}
But when I try to compile I get a compiler error on the aforementioned
line.
The error says "error: expression must have pointer-to-object type"
Any help as to why I'm getting this error will be appreciated..
Thanks,
Ravi