PDA

View Full Version : GLUT



SPAAARKY21
04-12-2001, 06:38 PM
I have a cross platform program I'm writing and I can't get the Windows target in my project file to compile ever since I started using glutKeyboardUpFunc(). Actually, I had to find a version of GLUT for Windows that included glutKeyboardUpFunc() before I started using it, but I found one and it causes compile time errors for me. I've tried different version from difference sources and I get nothing but problems. I'm using CW Pro 6.1, and GLUT 3.7.3 (I think) for Windows. Here are my errors:

Error : ambiguous access to overloaded function
'std::exit(int)'
'exit(int)'
glut.h line 480 nit_ATEXIT_HACK(int *argcp, char **argv) { __glutInitWithExit(argcp, argv, exit); }

Error : ambiguous access to overloaded function
'std::exit(int)'
'exit(int)'
glut.h line 497 _ATEXIT_HACK(const char *title) { return __glutCreateWindowWithExit(title, exit); }

Error : ambiguous access to overloaded function
'std::exit(int)'
'exit(int)'
glut.h line 543 CK(void (GLUTCALLBACK *func)(int)) { return __glutCreateMenuWithExit(func, exit); }