Recent

Author Topic: Dynamic libraries in Linux  (Read 282 times)

LemonParty

  • Sr. Member
  • ****
  • Posts: 391
Dynamic libraries in Linux
« on: November 08, 2025, 09:45:30 pm »
Where dynamic libraries should be placed in Linux?
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

Fred vS

  • Hero Member
  • *****
  • Posts: 3723
    • StrumPract is the musicians best friend
Re: Dynamic libraries in Linux
« Reply #1 on: November 08, 2025, 10:28:42 pm »
Where dynamic libraries should be placed in Linux?

Hello.

You may take a look at https://wiki.freepascal.org/Lazarus/FPC_Libraries.

To resume:

If you use "external" - statically loading a dynamic library:
The most common is in /lib or /usr/lib or /usr/local/lib.

If you use "Loadlibrary()" - dynamically loading a dynamic library:
In the directory of your choice if you use the full path of the library,
or, if you only use the library name, the most common is in /lib or /usr/lib or /usr/local/lib.
« Last Edit: November 08, 2025, 10:49:04 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

 

TinyPortal © 2005-2018