I had to make this change to fl_text_extents() in fl_font_x.cxx
(from the fltk-1.3.x-r6530 weekly snapshot) in order for it to compile
on redhat 7.2:
----
void fl_text_extents(const char *c, int n, int &dx, int &dy, int &W, int &H) {
#warning fl_text_extents is only a test stub in Xlib build at present
W = 0; H = 0;
fl_measure(c, W, H, 0);
dx = 0;
dy = fl_descent() - H;
} // fl_text_extents
----
Basically up cased w/h -> W/H, and removed the unneeded &'s on the W/H
in fl_measure() (because fl_measure() doesn't expect pointers)
I encountered this during the recent reawakening of STR #614 from 2004:
http://fltk.org/str.php?L614
Here are the error messages I got with 'configure --disable-xft' when
compiling on that platform before I made the change:
----
Compiling fl_encoding_latin1.cxx...
Compiling fl_encoding_mac_roman.cxx...
Compiling fl_engraved_label.cxx...
Compiling fl_file_dir.cxx...
Compiling fl_font.cxx...
In file included from fl_font.cxx:56:
fl_font_x.cxx:301:2: warning: #warning fl_text_extents is only a test stub in
Xlib build at present
In file included from fl_font.cxx:56:
fl_font_x.cxx: In function `void fl_text_extents (const char *, int,
int &, int &, int &, int &)':
fl_font_x.cxx:302: `w' undeclared (first use this function)
fl_font_x.cxx:302: (Each undeclared identifier is reported only once
for each function it appears in.)
fl_font_x.cxx:302: `h' undeclared (first use this function)
make[1]: *** [fl_font.o] Error 1
make: *** [all] Error 1
[EMAIL PROTECTED] fltk-1.3.x-r6530]#
----
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev