Jos Dreesen wrote:
> I tried to use a FileChooser widget, but get a compile error inside FLTK:
>
> from Src/fltk_cde.c:27:
> fltk/FL/fl_ask.H: At global scope:
> fltk/FL/fl_ask.H:60: error: expected ‘,’ or ‘...’ before numeric
> constant
> fltk/FL/fl_ask.H:60: error: args to be formatted is not ‘...’
I'm changing those weird characters in those error messages
to what I think they should be, quotes:
> fltk/FL/fl_ask.H: At global scope:
> fltk/FL/fl_ask.H:60: error: expected "," or "..." before numeric constant
> fltk/FL/fl_ask.H:60: error: args to be formatted is not "..."
I'm guessing that means the compiler is having trouble with the
varargs syntax of "..." in the prototypes.
I'd compare the flags you're using with the flags FLTK used
to build itself, and look for differences.
You can turn off FLTK's default 'silent' mode build by editing
the fltk/makeinclude file, and commenting out the .SILENT line,
then rebuild one of the test programs. Then you'll be able to
see FLTK's compile/link flags, so you can check them against your own.
> Since I can compile FLTK itself without a problem, there must be something
> missing in my Makefile :
Something might be missing, or possibly something might be /added/
that is causing the problem.
Offhand, that '-std=c++98' flag looks odd:
> lin :
> g++ -Wall -std=c++98 -O3 -o emulith $(libdirs) $(includes) $(files)
> $(fltklib) $(xlibs)
What's that for? Maybe remove it.
Also, comparing FLTK's compile/link flags to your own carefully
will probably help you figure it out.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk