error: 'xxxxx' does not name a type

I’m running Arduino 1.0.1 (Also tried 1.0) and am trying to get a Magstripe library working from here:
https://code.google.com/p/magstripelib/

When compiling the code I get:

MagStripeReader:32: error: 'MagStripe' does not name a type
#include <MagStripe.h>


// Visual feedback when the card is being read...
static const byte READ_LED = 13;
static const byte ERROR_LED = 12;

MagStripe card;

The error points to the “MagStripe card;” line. What the compiler not liking?

Works fine for me… What version of the IDE are you using?

#include <MagStripe.h>


// Visual feedback when the card is being read...
static const byte READ_LED = 13;
static const byte ERROR_LED = 12;

MagStripe card;

void setup()
{
}

void loop()
{
}

Binary sketch size: 700 bytes (of a 32,256 byte maximum)

The error points to the "MagStripe card;" line. What the compiler not liking?

It is likely that the "does not name a type" message is not the only message you are getting. Scroll all the way to the top. Is there another message saying that MagStripe.h was not found?

Where did you install the library? How did you install the library? Did you restart the IDE after installing the library?

Whoops - it's working. :blush:

I copied the folder to my projects folder and it gave the error. When you mentioned libaries....I copied the folder to the libraries directory and restarted the IDE and opened it and it not works fine :)

Thanks.