Subject | Re: [firebird-support] Linux UDF written in pascal |
---|---|
Author | Coco Pascal |
Post date | 2009-06-15T20:15:26Z |
Flávio Costa schreef:
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.
>Without these directives routines like
>
> Try to use these compiler directives:
>
> {$mode DELPHI}{$H+}
> {$PACKRECORDS C}
>
> and declare all exported functions as
>
> cdecl
>
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.