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.