Hi All,

I use 3.0.3 SS on Linux 64bit and need to know the server's UTC 
timestamp. First started with a simple example UDF which written with 
FreePascal 3.0.4. See below. After many trying without success I 
realized my example works like a charm with Win32. (Just compiled with 
"fpc MY_UDF.pas" command.) But I use Linux 64bit. What I am doing wrong?


library MY_UDF;

{$MODE DELPHI}

{$IFDEF UNIX}uses cthreads;{$ENDIF}

function TEST_UDF:Int64;
begin
   Result:=123
end;

exports
   TEST_UDF;

begin
   IsMultiThread:=True;
end.

DECLARE EXTERNAL FUNCTION TEST_UDF BIGINT RETURNS PARAMETER 1 
ENTRY_POINT 'TEST_UDF' MODULE_NAME 'MY_UDF';

SELECT TEST_UDF() FROM RDB$DATABASE


With Win32 I see the correct 123 result but with Linux 64bit the next 
error appears:

Invalid token.
invalid request BLR at offset 36.
function TEST_UDF is not defined.
module name or entrypoint could not be found.

Gabor


------------------------------------

------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu.  Try FAQ and other links from the left-side menu there.

Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/ 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/firebird-support/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/firebird-support/join
    (Yahoo! ID required)

<*> To change settings via email:
    firebird-support-dig...@yahoogroups.com 
    firebird-support-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    firebird-support-unsubscr...@yahoogroups.com

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

  • [firebird-supp... Gabor Boros mlngl...@bgss.hu [firebird-support]
    • Re: [fire... Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
      • Re: [... Gabor Boros mlngl...@bgss.hu [firebird-support]
    • Re: [fire... Gabor Boros mlngl...@bgss.hu [firebird-support]
      • Re: [... Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
        • R... Gabor Boros mlngl...@bgss.hu [firebird-support]
    • Re: [fire... liviuslivius liviusliv...@poczta.onet.pl [firebird-support]

Reply via email to