error: 'EOF' was not declared in this scope的解决办法

来源:互联网 发布:三大耻辱 知乎 编辑:程序博客网 时间:2024/05/20 13:39

http://blog.sina.com.cn/s/blog_4f183d9601015zmy.html


error: 'EOF' was not declared in this scope的解决办法

 (2012-06-04 13:35:45)
转载
标签: 

error

 

eof

 

stderr

 

putc

 

stdio

 

was

 

not

 

declared

 

in

 

this

 

scope

it

分类: C++

将COOOL优化库升级到MinGW 4.4.0编译,结果报错:

error: 'EOF' was not declared in this scope

error: 'stderr' was not declared in this scope

error: 'putc' was not declared in this scope

解决方法是在报错文件的最开始加上#include <stdio.h>,因为EOF、stderr等都是在这个文件中定义的。

0 0
原创粉丝点击