Subject RE: [firebird-support] Re: my UDF shared libray can not be used in Vulcan
Author Alan McDonald
and compile this code, I got libsubs.so file and put in the Vulcan
bin directory, and the /etc/lib directory.
I export the function and use function in SQL, it does not work, say

but this is a UDF - it should be in the UDF folder - No? Doesn't linux have
a UDF folder?
Alan

> -----Original Message-----
> From: firebird-support@yahoogroups.com
> [mailto:firebird-support@yahoogroups.com]On Behalf Of heroes3lover
> Sent: Tuesday, 28 August 2007 4:21 PM
> To: firebird-support@yahoogroups.com
> Subject: [firebird-support] Re: my UDF shared libray can not be used in
> Vulcan
>
>
> --- In firebird-support@yahoogroups.com, Dmitry Yemanov <dimitr@...>
> wrote:
> >
> > heroes3lover wrote:
> > >
> > > DECLARE EXTERNAL FUNCTION SUBSTR
> > > CSTRING(255) CHARACTER SET NONE, INTEGER, INTEGER
> > > RETURNS CSTRING(255) CHARACTER SET NONE FREE_IT
> >
> > Why FREE_IT? You don't seem to allocate memory for the output
> parameter.
> >
> > > ENTRY_POINT 'SubStr' MODULE_NAME 'subs';
> >
> > As a dumb guess -- what about 'libsubs' as a module name?
> >
> >
> > Dmitry
> >
>
> Thanks for reply,
> FREE_IT means free the memory of result, I saw the example of fb2.0,
> they use it
> prefix 'lib' is no need, but even I add the prefix, same result.
>
> Regards,
> Roc
>
>
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Visit http://www.firebirdsql.org and click the Resources item
> on the main (top) menu. Try Knowledgebase and FAQ links !
>
> Also search the knowledgebases at http://www.ibphoenix.com
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Yahoo! Groups Links
>
>
>
>