---------- Forwarded message ---------- From: vlad florentino <[EMAIL PROTECTED]> Date: Fri, 25 Feb 2005 13:56:33 -0500 Subject: Re: Calling C/C++ library routines To: MrJoltCola <[EMAIL PROTECTED]>
On Fri, 25 Feb 2005 13:40:15 -0500, MrJoltCola <[EMAIL PROTECTED]> wrote: > At 01:27 PM 2/25/2005, vlad florentino wrote: > >Is there now, or will there be in the future, any way to call C/C++ > >library routines from within Parrot? For example, a mysql, pcre or > >libcurl library. Either static or dynamic. > > C yes. C shares objects are dynamically loadable by Parrot. > C++? Not directly, you'll need to wrap any C++ APIs in "extern C" stubs > to get at them from Parrot and make sure you stuff any object pointers into > a PMC. It has been done, an example is the C++ Qt Toolkit. > > -Melvin > > Wow, that's great! Are there any examples showing how one can call C routines in Parrot? $vlad.f()