I've actually tried to find any topic about this in the gnu linker "ld"'s manual.. no trace of such thing.. :(
even when i try to link using the Visual Studio linker to add delay loading, i've gone through the pain of linking to gnu (libgcc/mingw32) stuff, yet, after solving it out.. i hit the dead line..
the linker complains about these symbols:
Code: Select all
___FB_CTOR_BEGIN__
___FB_CTOR_END__
___FB_DTOR_BEGIN__
___FB_DTOR_END__
Code: Select all
___FB_CTOR_BEGIN__ = . ; __FB_CTOR_BEGIN__ = . ;
*(.fb_ctors);
___FB_CTOR_END__ = . ; __FB_CTOR_END__ = . ;
___FB_DTOR_BEGIN__ = . ; __FB_DTOR_BEGIN__ = . ;
*(.fb_dtors);
___FB_DTOR_END__ = . ; __FB_DTOR_END__ = . ;
and if there's any, could the support for delay load modules be added as a freebasic built-in feature (i'd be really glad to help)..
delay loading modules can be really important for systems like windows, where APIs actually dissapear on some versions... :(
i know ld supports "lazy binding" modules on linux, so i think portability wouldn't be of much trouble.. am i correct?? or is there something i'm missing?
thanks :)