下面是我的C++代码和我的组合文件。
when I run spawn-fcgi -a120.0.0.1 -p9000 -n ./rtb.o
我发现这一错误。
spawn-fcgi: exec failed: Exec format error
Here is my c++ code that I complied as rtb.o
#include "fcgi_stdio.h"
#include <stdlib.h>
using namespace std;
int main()
{
int count = 1;
while(FCGI_Accept() >= 0)
printf("Content-type: text/html
"
"
"
"<title>FastCGI Hello!</title>"
"<h1>FastCGI Hello!</h1>"
"Request number %d running on host
",
++count);
return 0;
}
因此,我做了什么错误?