Thanks to Albrecht for the response. > > How? Do you include it before or after the FLTK headers, or > what does this mean? If you include it, what is the full > #include statement?
I have included <dirent.h> before FLTK headers. as: #include <dirent.h> #include <FL/Fl.H> #include <FL/Fl_File_Chooser.H> #include <FL/fl_ask.H> #include <FL/fl_draw.H> #include <FL/Fl_Window.H> ... > > I wonder why this didn't come up before. > > > Hope this is acceptable and request you to modify if found correct. > > I'm not sure about the correctness of your fix. Maybe a newer version > of mingw (w32api) introduced dirent.h, and the existing code was written > before this happened. the current mingw(gcc3.4.5) /win32api have 'dirent.h' in 'include' directory. the dirent.h in mingw include says: * DIRENT.H (formerly DIRLIB.H) > > Could you please post the result of the following command from your > FLTK root directory: > > $ grep -i dir config.h > > I'm especially interested in "HAVE_DIRENT_H", but also in all the other > defines in this area. i dont have 'grep' , so please apologise me for not able to give the requested ones. > * > * Where is <dirent.h> (used only by fl_file_chooser and scandir). > */ > > #define HAVE_DIRENT_H 1 > /* #undef HAVE_SYS_NDIR_H */ > /* #undef HAVE_SYS_DIR_H */ > /* #undef HAVE_NDIR_H */ > /* #undef HAVE_SCANDIR */ > /* #undef HAVE_SCANDIR_POSIX */ > > > BTW: did you run autoconf and ./configure, or did you use any predefined > configure and Makefiles? I have not built the fltk libs myself. So i dont have the 'configure' etc. It is mingw compatible libs. > Thanks for your help ,Albrecht. ramakrishnan 28thnov2009 _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

