Resource temporarily unavailable for glutInit function

26 Views Asked by At

Test code is:

#include <stdio.h>
#include <stdlib.h>

#include <GL/glew.h>
#include <GL/freeglut.h>

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

    perror("err");

    return 0;
}

I compile the program as follows:

gcc test.c -lglut -lGL -lGLEW -lGLU -lm -o test


I got the following error when the program was running.

err: Resource temporarily unavailable


Why did this happen?
0

There are 0 best solutions below