error: 'EOF' was not declared in this scope的解决办法
(2012-06-04 13:35:45)将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等都是在这个文件中定义的。