This one has me scratching my head. For some reason my class is not being recognized. The funny thing is, I have another class in this project that is working completely fine, and I built it the exact same way. I’ve checked my code about a hundred times, and I can’t come up with anything. Here’s the header:
#ifndef _BUTTON
#define _BUTTON
#include "ofMain.h"
class Button{
public:
Button();
Button(int _bx, int _by, int _bw, int _bh);
~Button();
void initButton();
void buildButton();
int bx, by, bw, bh, balpha;
bool buttonDoneBuilding;
};
#endif
In testApp.h I’m putting
#include "Button.h"
right under the include of my other class. Then for my variable I’m declaring:
Button *button;
When I compile (in MSVC08) I get an error saying that I’m missing a ‘;’ before ‘*’, which I take to mean that it doesn’t recognize ‘Button’ as a data type. Am I missing something completely obvious here?