在C应用中嵌入http服务器libmicrohttp

来源:互联网 发布:微信单删软件 编辑:程序博客网 时间:2024/06/07 23:39

下载安装libmicrohttp

编译example中的fileserver_example.c

gcc -g fileserver.c /root/microhttpd/lib/libmicrohttpd.a -I/root/microhttpd/include -pthread -lgnutls -o fileserver

这样直接编译会有几个头文件找不到,把源码中的头文件拷进来:platform.h,plibc.h,MHD_config.h