2012-05-29 8 views
2

우분투를 실행하는 서버에서 FCGI를 내 C++ 코드와 연결하려고합니다. FCGI 웹 사이트에서 테스트 된 플랫폼 목록에서 우분투를 찾지 못했지만 어쨌든 빌드를 시도했습니다.우분투를 실행하는 서버에 FastCGI를 구축하는 중 오류가 발생했습니다.

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

도움을 크게 감상 할 수있다.

답변

4

EOF는 C 매크로이며 fcgio.cpp 파일에 포함되어 있지 않은 stdio.h이 필요하다는 것을 알았습니다.

fcgio.cpp 파일에 #include <stdio.h>을 추가하면 문제가 해결되고 FCGI가 우분투에서 제대로 빌드됩니다.

관련 문제