[fpc-pascal] libQT4Pas - Why it is needed?

Lars noreply at z505.com
Sun Jan 29 23:38:55 CET 2012


Do other languages like python use the plain c interface, or C++?

how about something like ruby, lua, objective C, php ..



Krzysztof wrote:
> Just as I thought - it is object class thing. So if "FPC does not
> (fully) support directly calling external C++ libraries" there are
> plans to support it? This will be great
>
> 2012/1/29 Michael Van Canneyt <michael at freepascal.org>:
>>
>>
>> On Sun, 29 Jan 2012, Krzysztof wrote:
>>
>>> Hi,
>>>
>>> I am wondering. If I build application for linux using gtk2 widgetset
>>> for GNOME (or XFCE etc.) and send this program to my friend, then he
>>> can run it without any external librarys (of course if he have gnome
>>> too), this same thing on windows. But why when I build application on
>>> KDE interface I need some external libQT4Pas to run it and my friend
>>> need it too (he have KDE so all QT librarys too)? There is no
>>> libGTK4Pas so why exists layer libQT4Pas? What is difference between
>>> GTK and QT librarys?
>>
>>
>> GTK has a procedural C interface, it is exposed in the GTK libraries.
>> The
>> FPC compiler understands this interface.
>>
>> Qt is written in C++, and exposes C++ classes in the Qt libraries. The
>> FPC
>> compiler does not know how to handle C++ classes.
>> Therefor, a 'procedural' interface to the C++ needs to be made, and this
>> is
>> libQT4Pas. It is generated by a GCC.
>>
>> Michael.
>>
>> _______________________________________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>




More information about the fpc-pascal mailing list