[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Problem with structure
From: |
wbounce |
Subject: |
[avr-gcc-list] Problem with structure |
Date: |
Sun, 2 Oct 2005 22:29:12 -0400 |
I have the following structure
typedef struct ranges_t
{
uint16_t Front;
uint16_t Left;
uint16_t Right;
} RANGES;
With this definition of an array of that structure
RANGES Sonar[2];
I get this error
DoSonar.c:110: error: request for member `Front' in something not a
structure or union
On this line.
Sonar[SonarIndex].Front = SonarRange;
What am I doing wrong?
- [avr-gcc-list] Problem with structure,
wbounce <=