自己写了一个模块,需要用到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命令后加上编译参数?