The programs segfault when they get to glutCreateWindow(). This happens with the example programs, and with one I started on on another computer.
After commenting that out, it crashes on glutMainLoop(), which is the last function.
Any idea what I can do to fix it?
Check that you are calling glutInit( & argc, argv ).
If you are using an old, old glut, ensure that you are passing at least one argument to it via argc/argv. For instance:
int argc = 1;
char *name = “foo”;
glutInit( &argc, &name );
I am calling glutInit(), and I tried the code you said. It still doesn’t work.
ugluk
4
I had a problem when I called glutCreateWindow() with a NULL pointer for the name once.
I didn’t. It had a name.
Is there any alternative to glutCreateWindow()? Should I just try a different toolkit?