fcgio.cpp:50:错误:'EOF'在此范围未声明 [英] fcgio.cpp:50: error: 'EOF' was not declared in this scope

查看:760
本文介绍了fcgio.cpp:50:错误:'EOF'在此范围未声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立一个Linux操作系统Ubuntu 10.x的机器上的FastCGI。

I am attempting to build fastcgi on a Linux Ubuntu 10.x machine.

我运行下面的命令:

./配置

./configure make

和我得到以下错误:

fcgio.cpp: In destructor 'virtual fcgi_streambuf::~fcgi_streambuf()':
fcgio.cpp:50: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::overflow(int)':
fcgio.cpp:70: error: 'EOF' was not declared in this scope
fcgio.cpp:75: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::sync()':
fcgio.cpp:86: error: 'EOF' was not declared in this scope
fcgio.cpp:87: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::underflow()':
fcgio.cpp:107: error: 'EOF' was not declared in this scope
make[2]: *** [fcgio.lo] Error 1
make[2]: Leaving directory `/somepath/fcgi-2.4.0/libfcgi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/somepath/fcgi-2.4.0'
make: *** [all] Error 2

我注意到,其他人遇到了同样的问题,并要求在各种论坛等这个问题 - 但是,我还没有尚未,看到了这个问题的答案/问题

I notice that others have had the same problem and have asked this question in various fora etc - however, I have not as yet, seen an answer to this question/problem.

有没有人设法建立在Linux上的FastCGI?
我该如何解决这个问题?

Has anyone ever managed to build fastcgi on Linux? How do I fix this problem?

推荐答案

EOF是一个C宏看来你没有它在fcgio.cpp定义,或者有什么东西未定义它。我会先尝试添加的#include<文件stdio.h方式> 开始fcgio.cpp的

EOF is a C macro and seems that you do not have it defined in fcgio.cpp or that something has undefined it. I would first try to add #include <stdio.h> to start of fcgio.cpp.

这篇关于fcgio.cpp:50:错误:'EOF'在此范围未声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆