[Lazarus] How to access libraries from other languages?

Den cyraid at gmail.com
Mon Feb 16 04:48:31 CET 2015


lol, speaking of which Sven, what's the progress report on the C++ 
Classes? :D

- Dennis

On 2015-02-15 12:33 PM, Sven Barth wrote:
> On 15.02.2015 16:46, Chavoux Luyt wrote:
>> Hi guys,
>>
>> The recent threat on Raspberry libraries made me think. I remember that
>> it was possible in Delphi to access .ddl libraries written in C or C++
>> (a bit more work) by wrapping them and using a "far" call? I did this a
>> while ago, so not clear on the details anymore. Typically I would write
>> a driver etc. for hardware in C/C++ and then have a Delphi wrapper class
>> that I could use to access the hardware. I assume this is still possible
>> in Lazarus? Are there any tutorials etc. or will the old Delphi methods
>> still work? Will this also work with Linux .so files? For that matter,
>> are there any other way for Lazarus to get direct access to the hardware
>> (except maybe use inline assembler)?
>>
>> Thanks for bringing me back up to speed!
>
> C libraries are no problem. In fact we have many import units for 
> various C libraries (e.g. X11, Gtk, etc.). C++ is more problematic. In 
> theory the compiler contains support for C++ classes, but that is 
> nowhere near usable currently so a C++ API needs to be flattened to a 
> C one like is done with the Qt libraries.
>
> Regards,
> Sven
>
>
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





More information about the Lazarus mailing list