Issue
I'm trying to port some old MSVC C++ code to MinGW/GCC.
One problem is that the project relies heavily on the /DELAYLOAD option for functions that aren't always used, and where the proper dll is located at runtime.
Is there such a similar option on MinGW/GCC?
This code is targeting the windows platform.
Solution
On elf targets (for Unix-like systems), you can specify the -z lazy
option (which is the default anyway) with ld
(the linker that MinGW also uses).
As far as I know, the i386 PE target (for Windows) does not have an explicit lazy linking option. I can find no documentation of it being available.
Answered By - greyfade Answer Checked By - David Goodson (WPSolving Volunteer)