From: Brian P. <br...@pr...> - 2000-06-15 15:15:04
|
"Sebastián González M." wrote: > > Hi there! > Please consider this 7-line program, 'test.cpp': > > #include <cstdlib> > #include <GL/glut.h> > > int main(void) > { > return 0; > } > > I'm working with Mesa on Linux, when compiling test.cpp with -ansi -pedantic > i get: > > In file included from test.cpp:2: > /usr/include/GL/glut.h:202: warning: declaration of `exit(int)' throws > different exceptions > /usr/include/stdlib.h:520: warning: previous declaration here > > glut.h declares exit(), why? > I think that exit() dcl isn't needed to GLUT end-users; can you remove it on > next release? I've removed it. It's another side effect of Windows-specific nonsense. -Brian |