I'm using multiple inheritance to derive a class. The derived class is created from one of my own classes and the ifstream class. The only problem is that the compiler keeps telling me that my ifstream base class is undefined.
This is my class declaration:
1 2 3 4 5
class TFL: public ifstream, public TextField{
public:
TFL(char*, int, int, int, int);
//~TextFieldLoader();
}
The class definition:
1 2 3 4 5 6 7 8
TFL::TFL(/*const*/ char *fn, int row, int col, int width, int height)
: ifstream(fn), TextField(fn, row, col, width, height){
int length;
//determining the size of the file
seekg(0, ios::end);
length = tellg();
seekg(0, ios::beg);
}
I can't seem to find the problem as it seems correct.