[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LC++]Path of a shared library



Hi All!

In Windows is possible to discover the path of a DLL in the entry-point,
using GetModuleFileName with the HINSTANCE of the DLL.

I knew one way to do this in Linux. Using the LD_LIBRARY_PATH
environment variable and looking for the filename.

Is there a better way to do this?
If not, the correct way to do is only look for files in LD_LIBRARY_PATH
environment variable or have other directories to find too?


Adriano