For Linux, the search path for the DLL is as follows: application binary path, application's current working directory, paths specified in LD_LIBRARY_PATH, system paths listed in /etc/ld.so.conf.

For Windows, the search path is as follows: application binary path, application's current working directory, Windows system directories, Windows root directory, directories listed in the PATH environment variable.