I have been modifying a project and now when I try to compile the software I get the following error:
In file included from main.cpp:32:0:
main.h: In member function ‘virtual void Fl_Root::show()’:
main.h:41:17: error: incomplete type ‘Fl_X’ used in nested name specifier
if (!shown()) Fl_X::set_xid(this, RootWindow(fl_display, fl_screen));
^
The menu.h file is very simple and contains just the following:
extern void ShowMenu();
class Fl_Root : public Fl_Window {
int handle(int);
public:
Fl_Root() : Fl_Window(0,0,Fl::w(),Fl::h()) {
}
void show() {
if (!shown()) Fl_X::set_xid(this, RootWindow(fl_display, fl_screen));
}
void flush() {
}
};
Any help would greatly be appreciated!
Per Drew's suggestion!
I found the problem! I commented out a "#define FL_INTERNALS 1" call before the "#include" statements - oops! Just wanted to post in case this helps someone else.