Download presentation
Presentation is loading. Please wait.
1
Working with Linux Libraries in Delphi
Craig Chapman, Embarcadero, Software Consultant
2
About Me Craig Chapman:
Blog: Consultant for Embarcadero Technologies. Delphi Developer >20 years “Mad Scientist” – Electronics and Software
3
Agenda What are shared object files?
Early vs Late binding to shared object files (.so) Create and consume a shared object library Finding headers and documentation Header translation (basics) The X-Server Creating an X-Server application
4
Shared Object Files Comparable to .DLL (Dynamic Link Libraries) from Windows systems. .so File extension Elf format files with a number of ‘Exports’ Typically the ‘cdecl’ calling convention. Provide the ‘API’ for Linux Common (minor differences) across multiple *nix platforms.
5
Early vs Late binding Not to be confused with static binding.
Early binding requires interaction from the linker. Late binding involves calling the API for function pointers. Function pointer types must be defined. Early binding issue in Delphi? Header File import.
6
Shared Object Files Lets create and consume our own shared object file.
7
Q&A More Information:
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.