How to use C++ code in udf eg I want to use std::map in udf

23 views
Skip to first unread message

Tariq

unread,
Mar 14, 2008, 9:43:26 AM3/14/08
to The UDF Repository for MySQL
Hello,

I am creating a udf in mysql and I want to use some c++ code
in it. Infact I want to use std::map in my udf to improve my udf
performance. Please tell me how can i call c++ code in c to create a
udf or the other way where i can create a complete c++ based udf
function in which i can use c++ features such as std::map or
std::vector etc. I will appreciate if u help me in this regard.

Thank you

Regards,
Tariq.

Jess Balint

unread,
Mar 14, 2008, 10:53:44 AM3/14/08
to Tariq, The UDF Repository for MySQL
Tariq,

You have to export your UDF function as 'extern "C"'.

Jess

Reply all
Reply to author
Forward
0 new messages