error: variable or field 'test' declared void ??

Hi - I'm trying to figure out an error I keep getting with the little test sketch below. The error I get is:

error: variable or field 'test' declared void
Bad error line: -2

Does this mean that the compiler doesn't know about my typedef? Am I missing something basic about the Arduino environment? Are typedefs not supported?

--Roy

typedef int16_t STEPPER_COORD;          

typedef struct _stepper_xy {
  STEPPER_COORD x;
  STEPPER_COORD y;
} STEPPER_POINT;


void test(STEPPER_POINT pt){
  pt.x = 50;
  pt.y = 20;
}

void setup(){
//
}


void loop(){
//
}

http://www.arduino.cc/playground/Code/Struct#FAQ
:slight_smile:

thanks! I had searched around in the forum, etc. but didn't find a reference to that.

Compiles now.

--Roy