Chinaunix首页 | 论坛 | 博客
  • 博客访问: 93247
  • 博文数量: 22
  • 博客积分: 275
  • 博客等级: 二等列兵
  • 技术积分: 261
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-19 20:22
文章分类

全部博文(22)

文章存档

2017年(3)

2016年(11)

2015年(8)

我的朋友

分类: Web开发

2015-08-27 23:14:59

    

        fcgi-2.4.1 fastcgi开发包 make编译出错                         

        分类:             linux点滴                   2336人阅读     评论(0)     收藏     举报    

下载fcgi-2.4.1后,安装fastcgi开发包,报以下错误:


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:113: error: 'EOF' was not declared in this scope
make[2]: *** [fcgio.lo] Error 1
make[2]: Leaving directory `/root/downloads/fcgi-2.4.1-SNAP-0910052249/libfcgi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/downloads/fcgi-2.4.1-SNAP-0910052249'

make: *** [all] Error 2

解决办法:

在/include/fcgio.h文件中加上 #include <cstdio>,然后再编译安装就通过了。

阅读(2061) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~