1 2 3 4 5 6 7 8 9 10 11
#include <GL/glut.h> #include <stdio.h> int main() { /* The following should call exit(1) and print freeglut ERROR: Function <glutCreateWindow> called without first calling 'glutInit'. to stderr */ glutCreateWindow("gluttest"); }