Hey,
I tried to search and found a little, but it was not enough to help me. I am getting this error:
Code:
InputBox.h:8: error: expected class-name before '{' token
but I'm pretty sure the required class definitions are included.
here's InputBox implementation and header.
Header:
Code:
#ifndef INPUTBOX_H_
#define INPUTBOX_H_
//#include <FL/Fl_Input.H>
//#include "Widget.h"
class InputBox: public Fl_Input, public Widget
{
public:
InputBox(int, int, int, int, const char* );
private:
InputBox();
};
#endif /*INPUTBOX_H_*/
Implementation:
Code:
#include <FL/Fl_Input.H>
#include "Widget.h"
#include "InputBox.h"
//InputBox::InputBox(){}
InputBox::InputBox(int X, int Y, int W, int H, const char *L): Fl_Input(X, Y, W, H, L)
{
callback(callback_changed, this);
}
I get this error if I were to include Widget.h and Fl_Input.H in the InputBox.h file as well. I can't figure it out, please help me if you can. Thank you.