List:General Discussion« Previous MessageNext Message »
From:Gelu Gogancea Date:September 6 2002 6:12pm
Subject:Re: UDF in c++ problem
View as plain text  
Hi,

If you use another library for linking with your code and the library is not
in the right place(after compiling)...this error occur.

Regards,

Gelu
_____________________________________________________
G.NET SOFTWARE COMPANY

Permanent e-mail address : gg@stripped
                                          gelugogancea@stripped
----- Original Message -----
From: "Fei Chen" <feic@stripped>
To: <mysql@stripped>
Sent: Friday, September 06, 2002 7:03 PM
Subject: UDF in c++ problem


> Dear list,
>
> I have a version of a shared lib, say udf_test.so, written in C, that
> loads using "mysql> CREATE FUNCTION ..." without a problem. Now say I
> create another lib, udf_test1.so, that's written in C++ and includes code
> from udf_test.so (declared using extern "C"{}), MySQL complains ERROR 1127
> cannot find the function. Is this because of name mangling by g++? But
> when I used nm to check, all the functions, e.g. test_init, test and
> test_deinit are there. Does anyone know what possible causes may be? or
> how I should be debugging this problem? I'm using
> mysql  Ver 10.12 Distrib 3.23.27-beta, for pc-linux-gnu (i686)
> on Red Hat 7.2
>
> Thanks for any hints,
>
> fei
>
>
>
> ---------------------------------------------------------------------
> 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 <mysql-thread118962@stripped>
> To unsubscribe, e-mail <mysql-unsubscribe-ggelu=arctic.ro@stripped>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>

Thread
UDF in c++ problemFei Chen6 Sep
  • Re: UDF in c++ problemGelu Gogancea6 Sep