[Kde-bindings] Using smoke with ffi to C

Paulo J. Matos pocm at soton.ac.uk
Tue Oct 10 10:07:29 UTC 2006


On 10/9/06, Luca Fascione <lukes at wetafx.co.nz> wrote:
> Paulo,
> I've done this before with Tcl, which has a C API.
>

Can I look at the sources?

> The way you do it is that you do the language binding in C++,

What do you mean?

>using your
> API in C,

Do you mean, I program in C++ but then use the C API from my language
to call C++? But what about name mangling? or should I use extern C {
}?

> and Qt/Smoke parts in C++. The problem is that your target
> language needs object oriented support to be able to subclass the Qt
> objects...
>

Can't understand how, if my language has OO support, I can inherit for
example from a class in the C++ part...

> Luca
>
> Paulo J. Matos wrote:
> > Hi all,
> >
> > How can I use smoke to create bindings for Qt/KDE if the language ffi
> > I'm using only accesses C correctly?
> >
> > The example
> > http://cablemodem.fibertel.com.ar/lateral/weblog/2005/12/16.html
> >
> > uses C++.
> > I've also downloaded QtRuby but this one was just to see if it would
> > clarify how smoke works... but still since I don't understand ruby I
> > was not really able to understand what architecture they are using to
> > create the bindings. Correct me if I'm wrong: In QtRuby they create a
> > C++ extension to the Ruby compiler to call smoke and then use it in
> > ruby to create the bindings. Is it?
> >
> > Regards,
> >
> >
>
> --
> Luca Fascione
> Pipeline Engineer - Weta Digital
>
> +644 380 5951 (x5951) / +64 21 0764 862
>
> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings at kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings
>
>
>


-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK



More information about the Kde-bindings mailing list