KES wrote:
#ld -shared -soname libtkes2.so.1 -o libtkes2.so.1.0 -lc tkes2.o
#cp tkes2.so /usr/local/libexec/firebird/udf/
#cp tkes2.so.1.0 /usr/local/libexec/firebird/udf/
#cd /usr/local/libexec/firebird/udf/
#ls -l
Is the above used in a script? If yes, then it is linking into
libtkes2.so, bu
KES wrote:
library tkes2;
{$mode objfpc}
{$PACKRECORDS C}
function somefn: integer; cdecl; export;
begin
somefn:= 3;
end;
exports
//I do not do as:
// somefn name 'somefn'; // because of this cause error tkes2(17,1) Error:
Asm: Duplicate label somefn
//so I do as:
somefn name '_somefn'
Am Donnerstag, den 13.11.2008, 18:59 +0200 schrieb KES:
> Здравствуйте, Marc.
>
> Вы писали 12 ноября 2008 г., 23:12:43:
> MS> Then I'd say the fault is clearly on the firebird side.
>
> MS> One last thing I'd try is to use another name (like with ld: using
> MS> -lmine is searching for "libmin
Another observation:
In any case you get the error message:
> function FNTEST2 is not defined
> module name or entrypoint could not be found
If the function name is there and written correctly, make sure the
module (= your library) is found. I'm not used to making UDFs, but
somehow the search pa
Should there be a 'uses' line somewhere?
>
> library tkes2;
>
> {$mode objfpc}
> {$PACKRECORDS C}
>
>
> function somefn: integer; cdecl; export;
> begin
> somefn:= 3;
> end;
>
> exports
> //I do not do as:
> // somefn name 'somefn'; // because of this cause
> error tkes2(17,1) Error: Asm: