[fpc-devel] Dynamically Loading Libraries

Vincent Snijders vsnijders at vodafonevast.nl
Mon Nov 2 21:07:10 CET 2009


Ivo Steinmann schreef:
> Most libraries are translated by a tool like h2pas from the original
> headers and then rehashed manually. The best solution would be, if
> there's a tool that generates the var procedures directly from all
> external procedures.

What do you exactly mean? A tool which takes for example:
http://svn.freepascal.org/trunk/packages/libpng/src/png.pp
and outputs a png_dyn.pp.

> 
> But else it's much simpler to maintain a construct as the one above than
> allways starting from the orignal h file or updating allways both
> declarations. I know what i'm talking about, since I translated about 15
> headers in /fpc/packages ^^
> 
> But of course you are right, it's not the "nice" solution ;) The best
> solution would be to have got some support from the compiler itself ;)
> 

What kind of help?

Vincent



More information about the fpc-devel mailing list