Class initializer problem

Howdy, I'm sure this is one of those problems dancing right in my face and I don't see it, but I can't for the life of me figure it out. I'm getting an error that says "Expected constructor, destructor, or type conversion..."

I don't think the problem is in .cpp so I'll just post .h for now:

#ifndef ITG3200
#define ITG3200

#include    "Arduino.h"

class ITG3200
{
public:
    ITG3200();
    int readITG3200(byte axis);
};
#endif

Here is the relevant code in .pde

#include "ITG3200.h"

ITG3200  gyro;

I appreciate any help!

Took me a little while. Let's walk through what you did.

#define ITG3200

So now the string ITG3200 is defined to be nothing.

Now:

class ITG3200
{
public:
    ITG3200();
    int readITG3200(byte axis);
};

becomes, after substitution:

class 
{
public:
    ();
    int readITG3200(byte axis);
};

Hence the error messages.

You need a different "guard" define, not the class name itself. eg.

#ifndef ITG3200_h
#define ITG3200_h

Thanks! You're awesome 8)