You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You very likely want to request everyCALL 'literal' to be generated as static call - to do so just pass -static on the cobc command line (which then also drops the need for the "do_not_call_me" function) and drops a bit of the CALL overhead, too.
Otherwise explicit specify a so called CALL-CONVENTION, possibly the embedded one call static 'SDL_INIT using ...`.
BTW: I've enjoyed your video on this game a lot, thanks for sharing your experience!
... and just to note: the reason why you needed that function when using dynamic calls is that the linker removes the "unused" libraries for you (you likely see that with ldd game, too) so they just weren't there at the run time (you could "preload" them, but in your case you really want those in).
You can tell the linker to not to this (and tell cobc to pass this request to the linker) by cobc--A "-Wl,--no-as-needed" -lSDL2 ... (but the linker won't get the idea to optimize those out if your calls to the library are static what this issue is about, so "just to let you know").
The text was updated successfully, but these errors were encountered:
cobol-explore/game-resource.cpy
Line 21 in d24968c
You very likely want to request every
CALL 'literal'
to be generated as static call - to do so just pass-static
on the cobc command line (which then also drops the need for the "do_not_call_me" function) and drops a bit of theCALL
overhead, too.Otherwise explicit specify a so called
CALL-CONVENTION
, possibly the embedded onecall static 'SDL_INIT
using ...`.BTW: I've enjoyed your video on this game a lot, thanks for sharing your experience!
... and just to note: the reason why you needed that function when using dynamic calls is that the linker removes the "unused" libraries for you (you likely see that with
ldd game
, too) so they just weren't there at the run time (you could "preload" them, but in your case you really want those in).You can tell the linker to not to this (and tell cobc to pass this request to the linker) by
cobc--A "-Wl,--no-as-needed" -lSDL2 ...
(but the linker won't get the idea to optimize those out if your calls to the library are static what this issue is about, so "just to let you know").The text was updated successfully, but these errors were encountered: