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?


typedef int16_t STEPPER_COORD;          

typedef struct _stepper_xy {

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

void setup(){

void loop(){

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

Compiles now.