fstream base class not found

Hey,

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.
Last edited on
You do know that ifstream is a standard class, right?
Yea but need to do this for an assignment. I did figure it out, I was missing the semi colon at the end of the class declaration.
Topic archived. No new replies allowed.