[MDM9607]fcgi-2.4.0编译出现fcgio.cpp:50:14: error: use of undeclared identifier ‘EOF‘ overflow(EOF)

问题log

fcgio.cpp:50:14: error: use of undeclared identifier 'EOF'
    overflow(EOF);
             ^
fcgio.cpp:70:72: error: use of undeclared identifier 'EOF'
            if (FCGX_PutStr(pbase(), plen, this->fcgx) != plen) return EOF;
                                                                       ^
fcgio.cpp:75:14: error: use of undeclared identifier 'EOF'
    if (c != EOF) 
             ^
fcgio.cpp:77:54: error: use of undeclared identifier 'EOF'
        if (FCGX_PutChar(c, this->fcgx) != c) return EOF;
                                                     ^
fcgio.cpp:86:18: error: use of undeclared identifier 'EOF'
    if (overflow(EOF)) return EOF;
                 ^
fcgio.cpp:86:31: error: use of undeclared identifier 'EOF'
    if (overflow(EOF)) return EOF;
                              ^
fcgio.cpp:87:41: error: use of undeclared identifier 'EOF'
    if (FCGX_FFlush(this->fcgx)) return EOF;
                                        ^
fcgio.cpp:107:35: error: use of undeclared identifier 'EOF'
            if (glen <= 0) return EOF;
                                  ^
8 errors generated.

解决方案

在fcgi-2.4.0/src/libfcgi/fcgio.cpp文件开头增加以下头文件

#include <stdio.h>

猜你喜欢

转载自blog.csdn.net/wgl307293845/article/details/121272274