Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

The problem is that glut.h defines a new exit() function, which overrides the one in stdlib.h (included by Windows.h). This problem has also been addressed on Stack Overflow herehere.

The solution is to include Windows.h before glut.h.

The problem is that glut.h defines a new exit() function, which overrides the one in stdlib.h (included by Windows.h). This problem has also been addressed on Stack Overflow here.

The solution is to include Windows.h before glut.h.

The problem is that glut.h defines a new exit() function, which overrides the one in stdlib.h (included by Windows.h). This problem has also been addressed on Stack Overflow here.

The solution is to include Windows.h before glut.h.

Improved formatting. Grammar. Reorganised for flow.
Source Link
Anko
  • 13.4k
  • 10
  • 55
  • 82

The problem here is that glut.h createsglut.h defines a new exit()exit() function, which has to overrideoverrides the one in stdlib.hstdlib.h (included by Windows.hWindows.h). The solution is to put the Windows.h include before the glut.h one.

The This problem ishas also been addressed on Stack Overflow here: http://stackoverflow.com/questions/14402/glut-exit-redefinition-errorhere.

The solution is to include Windows.h before glut.h.

The problem here is that glut.h creates a new exit() function, which has to override the one in stdlib.h (included by Windows.h). The solution is to put the Windows.h include before the glut.h one.

The problem is also addressed on Stack Overflow here: http://stackoverflow.com/questions/14402/glut-exit-redefinition-error

The problem is that glut.h defines a new exit() function, which overrides the one in stdlib.h (included by Windows.h). This problem has also been addressed on Stack Overflow here.

The solution is to include Windows.h before glut.h.

Source Link
Polar
  • 874
  • 8
  • 23

The problem here is that glut.h creates a new exit() function, which has to override the one in stdlib.h (included by Windows.h). The solution is to put the Windows.h include before the glut.h one.

The problem is also addressed on Stack Overflow here: http://stackoverflow.com/questions/14402/glut-exit-redefinition-error