i encountered a problem while programing with openGL using vc 2003
if i give
#include <GL/glut.h>
#include <iostream>
its giving compile time error Compiling...
main.cpp
D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stdlib.h(256) : error C2381: 'exit' : redefinition; __declspec(noreturn) differs
D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\glut.h(146) : see declaration of 'exit'
Build log was saved at "file://d:\Documents and Settings\Adarsha\My Documents\Visual Studio Projects\line-y=mxplusc\line-y=mxplusc\Debug\BuildLog.htm"
line-y=mxplusc - 1 error(s), 0 warning(s)
if i interchange to
#include <iostream>
#include <GL/glut.h>
i can then compile it
i am relatively new to openGL so can anone help explain
__________________
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.
Albert Einstein
----------------------------------------------------- My Blogsongs