sqlite 如何不支持cgi

sqlite 如何不支持cgi

sqlite 怎么不支持cgi?
我写了一个cgi程序,程序如下:

C/C++ code

#include <stdio.h>
#include <sqlite3.h>
int main(void)
{
        printf("Content-type: text/htmlnn");
        printf("<html> ");
        printf("<head><title>CGI Output</title></head> ");
        printf("<body> ");
        printf("<h1>Hello,world.</h1> ");
        printf("<body> ");
        printf("</html> ");
        exit(0);
}

写了一个makefile文件
hello.cgi:helloworld.c
arm-linux-gcc helloworld.c -o hello.cgi -L/home/share/sqlite/lib -I/home/share/sqlite/include
能通过而且能显示。
hello.cgi:helloworld.c
arm-linux-gcc helloworld.c -o hello.cgi -lsqlite3 -L/home/share/sqlite/lib -I/home/share/sqlite/include
能通过,但cgi认为不合1.1规范,所以不能显示(两者相差一个-lsqlite3 ),但是我知道要真正支持sqlite的话,-lsqlite3 这个参数是必需,请做过cgi的朋友提点意见看,


是不是权限问题?

sqlite 如何不支持cgi

相关文章:

你感兴趣的文章:

标签云: