Subject Re: [firebird-support] Linux UDF written in pascal
Author Coco Pascal
Flávio Costa schreef:
>
>
> Try to use these compiler directives:
>
> {$mode DELPHI}{$H+}
> {$PACKRECORDS C}
>
> and declare all exported functions as
>
> cdecl
>












Without these directives routines like
function DoStr(AStr: PChar): integer; decl; export
seem to work also, whereas functions with an integer input parameter like
function DoInt(AInt: Integer): integer; cdecl; export
do not.
Also routines requiring PIC don't work.

Better to avoid fpc-linux-i386 compiled libraries , for now.