perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject Re: AxKit working on ActivePerl
Date Sat, 02 Sep 2000 08:46:52 GMT
> Gerald
> - do you just write .def files by hand?

Yes, it is very simple. Here is an example from a project I have made some
time ago. It exports one symbol:



As you see, the name of the function must be the mangeled name, in case of
plain C, you just have to write an underscore in front of the function name.
(In case of C++ all the argument types are mangeld into the name and you
have look it up from the map file the linker generates). You can list as
many symbols as you like, one in each line.

The other way to go would be to put an


in front of the function definitions in mod_perl.h e.g.if you want to export
the following function

int mod_perl_sent_header(request_rec *r, int val);

you write it as

API_EXPORT (int) mod_perl_sent_header(request_rec *r, int val);


View raw message