   Exit redefinition
  I'm getting this error, and i think it has something to do with my glut include.error C2381: 'exit' : redefinition; __declspec(noreturn) differsIt pulls up this this line in the stdlib.h_CRTIMP __declspec(noreturn) void __cdecl exit(__in int _Code);Any ideas?J   
  This is due to the order of your include files, I can't remember which files it is concerned with (think maybe stdio.h?) just reshuffling the includes eliminates the error. I am sure someone here will tell you which headers need changing.:)   ;  LMAO ia the answer is in the question DOH!stdlib.h   ;  Hrmm, yeah, i read that oo... but...  is there no way to avoid this?  I would really appreciate a way to not have to worry about this.   ;Quote:Original post by Esmo2000Hrmm, yeah, i read that oo... but...  is there no way to avoid this?  I would really appreciate a way to not have to worry about this.Yep use freeglut coz glut is evil.;  Touche... had no idea glut was so evil.Cheers!   ;Quote:Original post by Anonymous PosterQuote:Original post by Esmo2000Hrmm, yeah, i read that oo... but...  is there no way to avoid this?  I would really appreciate a way to not have to worry about this.Yep use freeglut coz glut is evil.Maybe I should explain that comment.Glut uses an atexit hack and hogs the thread which runs its and runs in a loop until exit is called.Quote:from freeglut pageOne of the commonest complaints about the GLUT library was that once an application called glutMainLoop, it never got control back. There was no way for an application to loop in GLUT for a while, possibly as a subloop while a specific window was open, and then return to the calling function. A new function, glutMainLoopEvent, has been added to allow this functionality. Another function, glutLeaveMainLoop, has also been added to allow the application to tell freeglut to clean up and close down.