The UHF of the film world.


quietearth [General News 11.16.06]

Share on Google+


Just a quick post regarding an error I ran into while compiling doomcube, here's the error:
freeglut  ERROR:  Function <glutBitmapCharacter> called without first calling 'glutInit'.

The way around this is to simply call glutInit in the source code somewhere shortly after the start:
glutInit(& argc, argv);


And it runs fine..

avatar

ashjas (3 years ago) Reply

ok..i too happened to struggle with same error.
The solution was that in my code there was a global object being created...whose constructor was making some object of some other class whose constructer was calling glutBitmapCharacter...so being global glutBitmap was being called before the execution reaches main and to glutInit...
It might be a similar case for u too...

Hope this helps.

Bye.


Leave a comment








Related articles