fcgio.cpp:50: error: 'EOF' was not declared in this scope

前端 未结 3 1503
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 00:01

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

I run the following commands:

./configure make

and I get the following error:

         


        
3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-04 00:51

    Use -1 instead

    EOF is defined in as follows:

    #define EOF (-1)
    

    or (more professionally), you may put the following code above your main() or inside your header file:

    #ifndef EOF
    #define EOF (-1)
    #endif
    

提交回复
热议问题