httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralf Mattes ...@seid-online.de>
Subject Re: Debian 4 issue
Date Sun, 15 Jul 2007 15:10:46 GMT
On Sun, 2007-07-15 at 10:44 -0400, Farokh Irani wrote:
> >No - you are not! You are using g++-4... which is a C++ compiler. Are
> >you aware of C++ name mangling? Did you declare your exported symbols
> >'extern C'?
> 
> Um, yes, already done.
> 
> extern "C" module AP_MODULE_DECLARE_DATA fancy_module;
> 
> It's the first line after the includes.
> 
> Near the end of the file:

You need to declare the following as "C":

extern "C" {
> module AP_MODULE_DECLARE_DATA fancy_module = {
> 	STANDARD20_MODULE_STUFF,
> 	create_dir_mconfig,    /* create per-dir config structures    */
> 	merge_dir_mconfig,     /* merge  per-dir config structures    */
> 	NULL,                  /* create per-server config structures */
> 	NULL,                  /* merge  per-server config structures */
> 	fancy_cmds,            /* table of config file commands       */
> 	fancy_register_hooks   /* register hooks                      */
> };
}

HTH RalfD


Mime
View raw message