On Thu, Jan 29, 2009 at 04:49:43PM -0800, Jim Wilson wrote: > Jeremy Henty wrote: > > > Unfortunately it doesn't seem to be possible to query fltk-config > > to find out where the headers were installed. (Unless I've missed > > a trick.) > > How about sawing up the result of "fltk-config --cxxflags"? On my > box I get "-I/usr/local/include". Chop the "-I" and slap on a > "/FL/" and I think you're getting close.
It's a nice idea, but on my system I get "-I/usr/include/freetype2 -I/opt/Xorg/include -D_THREAD_SAFE -D_REENTRANT". (I configure with --prefix=/usr.) So the real include directory, namely /use/include, isn't there. My other thought was to preprocess the header as before, but look for preprocessor directives that record the actual file. Eg. gcc outputs "# 1 "/usr/include/FL/Fl.H" 1 3 4". But I have no idea how portable that is to other compilers. Regards, Jeremy Henty _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

