I made UDFs in vC++ and loaded them on windows binary version of mysql..
They are working perfectly fine
.I think you should specify these following arguments while defining a
function
e.g.
double func_test(UDF_INIT *initid, UDF_ARGS *args, char *is_null,
char *error)
{
return 1.0;
}
now try this..
Rgds
> -----Original Message-----
> From: Paul Grimwood [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 10:45 PM
> To: [EMAIL PROTECTED]
> Subject: user defined functions under windows
>
> I am trying to create a user-defined function for mysql. I am using a
> windows binary version of mysql and visual c++ to compile the code. I have
> created a dummy function call func_test that just returns 1.0. I compile
> this within a win32 dll project and get a file called funcdll.dll.
>
>
> This is basically the contents of the file:
>
> double func_test() { return 1.0; }
>
>
> I have placed the dll the bin dir and call
>
> mysql> create function func_test returns real soname "funcdll.dll";
> ERROR 1127: Can't find function 'func_test' in library'
>
> I assume it can find the dll but cannot find the function. Any clues,
> examples for windows using visual c++. The examples in the manual all
> refer to linux and i presume versions of mysql compiled from source as
> they describe folders that i dont have in my version, and i am not making
> any progess.
>
> thanks
>
> Paul
>
>
>
> Paul Grimwood
> IT Innovation Centre
> 2 Venture Road
> Chilworth Science Park
> Southampton SO16 7NP
>
> Tel: +44 23 8076 0834
> Fax: +44 23 8076 0833
>
> mailto:[EMAIL PROTECTED]
> http://www.it-innovation.soton.ac.uk
>
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
> <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php