我是靠谱客的博主 甜甜裙子,这篇文章主要介绍error: 'EOF' was not declared in this scope的解决办法,现在分享给大家,希望可以做个参考。

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等都是在这个文件中定义的。

最后

以上就是甜甜裙子最近收集整理的关于error: 'EOF' was not declared in this scope的解决办法的全部内容,更多相关error:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(115)

评论列表共有 0 条评论

立即
投稿
返回
顶部