Forum > Linux
Dynamic libraries in Linux
(1/1)
LemonParty:
Where dynamic libraries should be placed in Linux?
Fred vS:
--- Quote from: LemonParty on November 08, 2025, 09:45:30 pm ---Where dynamic libraries should be placed in Linux?
--- End quote ---
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.
Navigation
[0] Message Index