[fpc-pascal] Linking statically C code with stdcall functions

Marco van de Voort marcov at stack.nl
Fri Mar 5 10:03:10 CET 2010


In our previous episode, cobines said:
> 
> {$LINKLIB bz2}
> function BZ2_bzCompressInit(...): Integer; stdcall; external name
> '_BZ2_bzCompressInit at 16';
> 
> Is there a way I can declare the external function to use "C" style mangling?

That's (VB like) decoration, not C mangling. Only VS compilers use it. Afaik
Delphi supports it neither.



More information about the fpc-pascal mailing list