On 03/21/2010 06:07 PM, David Illescas wrote:
> Hello. This is my first time posting on this website.
>
> I downloaded fltk-1.3.x-r7302 and ran the ./configure. It stated that I 
> lacked the X11 libraries, so I ran
>
> sudo apt-get install libx11-dev
>
> The configure then ran succesfully. I then tried running sudo make, but was 
> told that g++ was not found, so I ran
>
> sudo apt-get install g++ which seems to have installed some version circa gcc 
> 4.4.
>
> I then ran sudo make again, succesfully. When I ran sudo make install, 
> however, I got the following:
>
> Compiling filename_ext.cxx...
> Compiling filename_isdir.cxx...
> Compiling filename_list.cxx...
> filename_list.cxx: In function ‘int fl_filename_list(const char*, 
> dirent***, int (*)(dirent**, dirent**))’:
> filename_list.cxx:99: error: invalid conversion from ‘int (*)(const void*, 
> const void*)’ to ‘int (*)(const dirent**, const dirent**)’
> filename_list.cxx:99: 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: *** [install] Error 1
> dille...@dillesca-laptop:~/Desktop/fltk-1.3.x-r7302$ ^C
>
> I am wondering if anyone knows how to get around this. I am hoping I won't 
> have to modify the file where the error is found.
>
> Thank you for all of the help! I apologize if this issue has been 
> appropriately addressed elsewhere.
>
> Sincerely,
> David Illescas
> Second Year Computer Engineering Student,
> University of British Columbia

Ubuntu has a package named build-essential which installs the basics for 
compiling programs.  Try loading that.

Mike
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to