httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farokh Irani <far...@mcfsoftware.com>
Subject Re: Debian 4 issue
Date Sun, 15 Jul 2007 16:07:19 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

I tried that, and as far as I can tell, it makes no difference. nm 
still shows the same list of symbols.
-- 

Farokh
----------------------------------------------------------------------------
MCF Software...simply dependably engineered
Developers of ListSTAR http://www.liststar.com/, MacRADIUS
http://www.macradius.com/, Address List Sorter
http://www.mcfsoftware.com/als/, SimpleText Filter for EIMS
http://www.mcfsoftware.com/stf/ and Auto Reply plug-in for EIMS 
http://www.mcfsoftware.com/ar/.

Mime
View raw message