[fpc-devel] Publishing symbol outside of "exports"
Anton Kavalenka
anton.k at tut.by
Mon Nov 11 19:39:42 CET 2013
Dear FPC-All!
If there is possibility of publishing .SO export symbol outside the main
file exports section?
I'm playing with http://bugs.freepascal.org/view.php?id=17805
I can include into .SO project the following unit.
It compiles but does not export symbol. Only export from module
containing the word 'library' works.
unit reshdr;
{$mode objfpc}
interface
var rh : pointer; external name 'FPC_RESLOCATION';
implementation
exports
rh;
end.
but FPC_RESLOCATION gets exported only when mentioned in main module
export section.
regards,
Anton
More information about the fpc-devel
mailing list