On Oct 23, 2007, at 5:04 AM, Daniel Fox wrote: > "Sylvain G. Vignaud" <[EMAIL PROTECTED]> wrote in news:23839- > [EMAIL PROTECTED]: > > >> That is definitely an error you made: ext should be defined as: >> const char *ext; >> > > Well it is not mine, it is in the source of FLU. I was wondering if > other > compilers let this get by, since FLU is at version 2.14, surely others > would have noticed this by now?
In C, literal strings are implied to be 'const' because they are stored in memory marked read-only. Most compilers don't give an error because requiring the 'const' would break millions of lines of old Unix code. Nevertheless, the "const" should be there. Please file and STR at http://www.fltk.org/str.php ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

