[LC++]Path of a shared library

Adriano dos Santos Fernandes adrianosf at uol.com.br
Fri Oct 22 07:04:02 UTC 2004


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






More information about the tuxCPProgramming mailing list