I’m trying to compile some ten-year-old code. This used to work
fine across several platforms. I’m now trying to compile it for
linux Fedora 7 using g++34 -Wno-deprecated. It throws the runtime
error:
“Function <glutCreateWindow> called without first calling
‘glutInit’”
I’ve read up a bit about this. Various sites say it’s a known bug
in the 0.8.1 SDK. So I installed the most recent version of
Mesa (7.0.2) and linked to that instead. Sadly I get the same
runtime error.
I’ve read about the possible fix
glutInit(&argc,argv);
but unfortunately I don’t have access to any command-line
arguments at that point in the code. It runs on posix threads, so
there isn’t even a main function.
My questions are:
-
Is there an up-to-date version of GL, freeglut, Mesa, call it
what you like, that does not feature this bug? -
Are there any incompatibilities between glutInit and posix
threads that I should be aware of? -
Any suggestions for how else I might fix the code?
Thanks!