[fpc-devel] library export in Linux
ABorka
fpc-devel at aborka.com
Sun Sep 28 10:15:44 CEST 2008
In the apache module examples in /fpc/packages/httpd22/examples/ all of
them has a
"Free Pascal only supports exporting variables on Windows" note there
and something like
{$ifdef WINDOWS}
exports
test_module name 'test_module';
{$endif}
With Apache 2.2.8 and 2.2.9 (the two I can test) on Linux the apache
modules compiled with fpc/lazarus all give the "Can't locate API module
structure" error when trying to load them at apache startup.
I noticed that if I remove the ifdef above and leave the exports there
it compiles and apache actually loads the module (doesn't work though
for me yet when trying to do a request). At least there is no error
message when apache starts up.
Is the "exports" now supported in Linux or it's a glitch that apache
loads the modules with the exports in them?
Thanks,
AB
More information about the fpc-devel
mailing list