自己编写的apache模块编译无法通过

VicHu 发布于 2012/02/27 17:17
阅读 463
收藏 0

自己写了一个模块,需要用到core_module的配置信息,因此写了如下代码:

#include "http_core.h"

core_request_config *reqconf;

reqconf = (core_request_config *)ap_get_module_config(r->request_config,  &core_module);                                                      

然后使用apxs -c -i -a mod_xxx.h,提示错误 core_request_config, core_module undeclared

求助这是什么原因呢?是不是需要在apxs命令后加上编译参数?

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部