Alvin wrote: > I am getting the following compile error: > > In file included from bookmarks_functions.h:16, > from bookmarks_functions.cpp:12: > /usr/include/FL/Fl_Preferences.H:174: error: 'FILE' has not been declared > > > This program used to compile without any problems. I am using FLTK 1.3.x > SVN 6728 > > The workaround that I am using now is: > > #define FILE void > #include <FL/Fl_Preferences.H> > #undef FILE > > I'm not sure what has changed. Could it be that Fl_Preferences.H is > missing a header file? I tried including <stdio.h> and <unistd.h> before I > include FL/Fl_Preferences.H, but that didn't fix the problem - I received > the same error. > > The only thing that has worked in defining a dummy FILE macro and then > undefining it (as above). > > Anyone else having this problem? > > Alvin
Just to follow up, if I comment out the call to make_deimage() from inside Fl_Image_Button::image() and add the following to the Extra Code section in FLUID (for that widget): o->make_deimage(). Then the widget works as I wanted - showing the image while activated and showing a "deimage" while deactivate. Currently, I am deactivating the parent Fl_Group of the widget, but I have also tested by calling deactivate() on the widget itself. So, I have a workaround, but I'm still not sure why I am getting a segfault inside Fl_Image_Button::image() if I call make_deimage()?? Alvin _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

