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

waldo kitty wkitty42 at windstream.net
Mon Jan 30 03:28:45 CET 2012


On 1/29/2012 17:38, Lars wrote:
> Do other languages like python use the plain c interface, or C++?
>
> how about something like ruby, lua, objective C, php ..


:( i don't nderstand why one would want to apply interpreted script languages, 
al la BASIC, to today's tasks... sure, these are neat and "more modern" but they 
are still interpreted scripting languages :(

> 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
>>
>
> _______________________________________________
> 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