eggle
04-24-2005, 05:12 PM
Hi,
I am using visualstudio.net to compile opengl written in c++
In my program I have included these
#include <GL/glut.h>
#include <stdio.h>
among a couple others
Now when I compile I get an error complaining about exit differs
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stdlib.h(256) : error C2381: 'exit' : redefinition; __declspec(noreturn) differs
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\glut.h(146) : see declaration of 'exit'
I read the glut file and there is a bit of imformation about when using muliple CRT's there can be problems. But I am quite new to opengl and don't really understand this can anyone help me solve this error? please
thanks
I am using visualstudio.net to compile opengl written in c++
In my program I have included these
#include <GL/glut.h>
#include <stdio.h>
among a couple others
Now when I compile I get an error complaining about exit differs
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stdlib.h(256) : error C2381: 'exit' : redefinition; __declspec(noreturn) differs
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\glut.h(146) : see declaration of 'exit'
I read the glut file and there is a bit of imformation about when using muliple CRT's there can be problems. But I am quite new to opengl and don't really understand this can anyone help me solve this error? please
thanks