Ian suggested

> > Replacing line 93 with 82 in filename_list.cxx, and then make.
>
> And I assume that filename_list.cxx then compiled succesfully for you?
>

Yes.

>
> > Compiling fl_set_fonts.cxx...
> > In file included from fl_set_fonts.cxx:39:
> > fl_set_fonts_xft.cxx: In static member function 'static=20
> > Fl_Font Fl::set_fonts(const char*)':
> > fl_set_fonts_xft.cxx:274: error: invalid conversion from=20
> > 'const char*' to 'char*'
> > fl_set_fonts_xft.cxx:275: error: invalid conversion from=20
> > 'const char*' to 'char*'
> > fl_set_fonts_xft.cxx:280: error: invalid conversion from=20
> > 'const char*' to 'char*'
> > make[1]: *** [fl_set_fonts.o] Error 1
> > make: *** [all] Error 1
>
--8<--
> OK, this is a different manifestation of the same problem. In this case,
> they (the glibc folk) have taken advantage of C++'s ability to overload
> functions to have multiple functions with the same name but differing
> signatures.
>
--8<--
>
> The quick hack is to find the three lines identified in the error (274,
> 275, 280) and tweak them all as follows (they are each different, but
> all of this form) -
>
> Before:
>          stop =3D strchr((const char *)font, ',');
>
> After:
>          stop =3D strchr((char *)font, ',');
>
--8<--
> Let us know how you get on - if you can confirm this works, we can
> probably try to push a more complete fix ASAP.
>
> Note that it is possible there are other gotchas in the code due to this

I made the changes to fl_set_fonts.cxx, and ran make, everything compiled OK.  
And for fun I did a make install (though I now remember the advice not to, oh 
well).  Ran a test program and everything is OK, now as if nothing happened.  
Easy! :)

Thanks Ian, Greg, and the silent others who offered their inner strength..  A 
copy of the make and make install output is available at 
http://pawel.customer.netspace.net.au/

pawel.

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

Reply via email to