visual c ++中的iostream.h中的错误

时间:2013-12-29 22:29:49

标签: 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;
程序体中的

使用了一些iostream函数,如cout,cin等。

但在运行程序时收到错误消息为

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.

0 个答案:

没有答案