Nine years ago, this question has been asked : Find a directory in shared library search path (Find a directory in shared library search path). An answer has been given using : opendir() then readdir() then dlopen() … Nowadays, is there a simpler way to do it or should I still follow this SMOP ? Answer No, using scandir() or