th wrote:
> I got a program with GUI generated with Fast Light User Interface
Designer (fluid) version 1.0107.
>
> With g++ 4.4.3 and fltk 1.1.10 on Ubuntu 10.04 LTS I got the error
message by compilation.
>
> /usr/include/FL/glut.H:184: error: expected identifier before numeric constant
> /usr/include/FL/glut.H:184: error: expected ‘}’ before numeric constant
> /usr/include/FL/glut.H:184: error: expected unqualified-id before numeric
> constant
> /usr/include/FL/glut.H:184: error: expected declaration before ‘}’ token
>
> The code snippet from FL/glut.H
>
> 182 inline void glutUseLayer(GLenum layer) {
> 183 layer ? glut_window->make_overlay_current() :
> glut_window->make_current();}
> 184 enum {GLUT_NORMAL, GLUT_OVERLAY};
> 185
> 186 inline void glutPostOverlayRedisplay() {glut_window->redraw_overlay();}
Well, that code looks OK to me (though I often miss obvious things...!)
and certainly flt-1.1.10 works well for me on ububtu-10.04 so...
One thing - is your code trying to pull in the "real glut" as well as
the fltk glut-emulation?
If so, that might be the problem, as fltk enumerates the glut magic
numbers quite differently from what "real glut" does.
That might then case the problem you are seeing.
Also, note that the fltk glut-emulation layer in 1.1.10 is substantially
more complete than the one that used to ship with 1.1.7, so there may be
some interaction there which we were not previously aware of.
I suspect that it is possible that someone in the past used "real glut"
to fill in some of the gaps in the fltk glut-emulation, and that maybe
with fltk 1.1.10 that is no longer necessary and indeed might be
problematic...
But that's just a guess.
Can you produce a minimal, compileable, single-file example that
exhibits the fault, so that we can investigate it in more detail?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk