This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Delay loaded shared objects
- From: Robert Huo <roberthuo2 at googlemail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 30 Nov 2009 22:53:38 +0000
- Subject: Delay loaded shared objects
Hi All,
I am not sure whether this is the right list. Please let me know if
there is a more appropriate list for this question.
Does gcc/g++ (on a typical Linux platform) supports delayed loaded
shared objects similar to the /DELAYLOAD option of MSVC [1]? The Win32
delay load implementation hides the LoadLibrary and GetProcAddress
logic from the programmer (those are similar calls to dlopen/dlsym on
Unix). Dependent DLLs are only loaded into library until the first
function in this library is called.
Many thanks,
Robert
[1] http://msdn.microsoft.com/en-us/library/151kt790.aspx