Problems with glut under visual c

Hi all,
I’ve a problem trying to compile/execute c++ apps using glut under windows.
I’m using win xp (home / professional, the problem is on both o.s’s) and use vc++ 5.0 to compile apps. The compiling is ok, the linking seems so, but when my application using glut is starting it crashes (code error: 0xc000001e). The include files, library files and dlls were all downloaded yesterday, so I don’t think there’s a problem on them. Even the simplest program, that executes a simple initialization, crashes:

#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
#include <GL/glut.h>


int main(int argc, char **argv)
glutInit(&argc, argv);

I’m using a laptop (Toshiba) with geforce4 graphic card.

If anyone knows how to solve the problem, I’d thank him very much

hello, have you set the display Callback?
with some version of glut if you dont call glutDisplayFunc(…); the program crashes in the glutMainLoop() call

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.