James Hearon wrote: > Hi, > I've tried several versions of FLTK but cannot seem to get thru make. Any > suggestions? > > filename_list.cxx: In function �int fl_filename_list(const char*, > dirent***, int (*)(dirent**, dirent**))�: > filename_list.cxx:93: error: invalid conversion from �int (*)(const void*, > const void*)� to �int (*)(const dirent**, const dirent**)� > filename_list.cxx:93: error: initializing argument 4 of �int > scandir(const char*, dirent***, int (*)(const dirent*), int (*)(const > dirent**, const dirent**))� > make[1]: *** [filename_list.o] Error 1 > make: *** [all] Error 1 > > gcc version 4.4.0 20090506 (Red Hat 4.4.0-4) (GCC) > fedora 11
We're working on a fix for this. As a workaround, please change the corresponding line (#93 in your case) as described in [1]: "Basic fix is trivial, change int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort); to int n = scandir(d, list, 0, (int(*)(const dirent **,const dirent **))sort); " However, there may be more compiler errors related to "const" attributes, as described in [2]. You can fix them as described there (just by adding the const keywords where appropriate, without the #ifdef's ...). The former is a problem with a new GLIBC version (2.10), the latter with the new gcc version (4.4). Albrecht [1] http://www.fltk.org/str.php?L2205 [2] http://www.fltk.org/str.php?L2222 _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk