I did use <FL/glut.H>. The code compiled and linked without any fuss. But on 
execution it terminates giving :

ERROR: Function <glutBitmapCharacter> called without first calling 'glutInit'.

same is the case with glutSolid*()
fltk documentation clearly states NOT to call glutInit() .   Ref: Mixing GLUT 
and FLTK Code @ http://www.fltk.org/documentation.php/doc-1.3/glut.html#glut

But, fortunately I managed to get the code running by calling glutInit() at the 
starting of the code [it is 1st line of main()]. Everything seems to be working 
fine.

--
Chitresh Bhushan

> Chitresh Bhushan wrote:
> > I am using fltk v1.1.9 for my projects. I need to use glutSolid*() in my 
> > code. But it seems that glutSolid*() is not emulated in the current stable 
> > release.
>
> Um, it certainly *is* supported by 1.1.9, just make sure you include
> <FL/glut.H> and not the usual <glut.h>.
>
> --
> ______________________________________________________________________
> Michael Sweet, Easy Software Products           mike at easysw dot com

_______________________________________________
fltk-opengl mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-opengl

Reply via email to