Visual c++ visual c+;中的iostream.h出错+;

Visual c++ visual c+;中的iostream.h出错+;,visual-c++,graphics,iostream,Visual C++,Graphics,Iostream,将头文件添加为 #include "stdafx.h" #include <GL/glut.h> #include <gl/GL.h> #include <gl/GLU.h> #include <math.h> #include <iostream> using namespace std; 这看起来像是不兼容的Visual Studio和Windows SDK版本。但它在其他一些问题上运行良好。我认为需要任何其他命令来添加吗?glu

将头文件添加为

#include "stdafx.h"
#include <GL/glut.h>
#include <gl/GL.h>
#include <gl/GLU.h>
#include <math.h>
#include <iostream>
using namespace std;

这看起来像是不兼容的Visual Studio和Windows SDK版本。但它在其他一些问题上运行良好。我认为需要任何其他命令来添加吗?glut.h已经很长时间没有包含在Windows SDK中了。你在那里复制了它,显然它不是一个非常兼容的版本。你得把它修好。我将glut.h文件复制到windows SDK,但仍然有错误。@bushra噢!你为什么要那样做?当然,那是行不通的。
InitializeBuildStatus:
1>  Creating "Debug\precompiled.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1>  me.cpp
1>c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(353): error C2381: 'exit' : redefinition; __declspec(noreturn) differs
1>          c:\program files\microsoft sdks\windows\v7.0a\include\gl\glut.h(146) : see declaration of 'exit'
1>
1>Build FAILED.