I this header is just supposed to make a data object for data storage:
area.h:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef AR_H
#define AR_H
class area
{
public:
area();
~area();
void initialize();
struct pt {
int x;
int y;
int set;
} tl,tr,bl,br;
int x,y,width,height;
private:
}
#endif
jdd:p9wbullets jdd$ g++ -c area.cpp
area.cpp:3: error: new types may not be defined in a return type
area.cpp:3: note: (perhaps a semicolon is missing after the definition of ‘area’)
area.cpp:3: error: return type specification for constructor invalid