When I had this error, I found one potential solution at http://www.idevgames.com/forum/archive/index.php/t-6635.html. Apparently glutInit(&argc, argv); must be called in your main before you can create a window, but this seems not to be necessary on many other platforms, so it's left out of a...