russk2txb
Joined: 30 Mar 2008 Posts: 109 Location: New Jersey
|
Why can't the compiler handle this? [solved] |
Posted: Mon Apr 04, 2011 10:14 am |
|
|
I'm so frustrated. I have been fighting problems like this forever and today I got the latest compiler 4.119 and still this does not work:
Code: | typedef struct {
int Sf [2]; // scale factors for gain and mag
int iOffset [4];
long vOffset [4];
} HpaData;
HpaData HPa [3];
void SetNewOffset (int channel, int hpa, int iOffset)
{
HPa [hpa].iOffset [channel] = iOffset; // <--- error line
}
|
Still get the same error:
Quote: |
***Error 66: Previous identifier must be a pointer
|
This error is repeated twice for the same line, with the same line position shown both times.
As you can see, there are no pointers involved in this. HPa is an array of structures that contain arrays.
The worst of the problem is that if I fool around with using the & and * operators long enough so that the compiler will accept it, then it usually gets the math wrong and returns garbage results.
CCS - does not anyone else in the world try to work at this level???
Thanks, Russ |
|