fcgi-2.4.1 fastcgi開發包 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] ´íÎó 1
make[2]: Leaving directory `/home/informix/fcgi/fcgi-master/libfcgi'
make[1]: *** [all-recursive] ´íÎó 1
make[1]: Leaving directory `/home/informix/fcgi/fcgi-master'
make: *** [all] ´íÎó 2

 

解決辦法:

在/include/fcgio.h文件中加上 #include <cstdio>,然後再編譯安裝就通過了。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章