while building own nginx module error to find user defined header file
Maxim Dounin
mdounin at mdounin.ru
Mon Jul 18 13:09:29 UTC 2016
Hello!
On Mon, Jul 18, 2016 at 12:28:34PM +0530, Pankaj Chaudhary wrote:
> I have written my own nginx module and i have my user defined header files
> but while building i am getting error header file not found.
If you are using header files in your module, you have to add your
module directory to the list of include paths.
Assuming you are using auto/module script to configure your
module, you should do something like this in your module ./config
script:
ngx_module_type=HTTP_AUX_FILTER
ngx_module_name=ngx_http_example_filter_module
ngx_module_incs=$ngx_addon_dir
ngx_module_deps=
ngx_module_srcs=$ngx_addon_dir/ngx_http_example_filter_module.c
ngx_module_libs=
. auto/module
--
Maxim Dounin
http://nginx.org/
More information about the nginx-devel
mailing list