Why load dynamic libraries instead of linking static libraries? #2403
xuxiaocheng0201
started this conversation in
General
Replies: 1 comment 19 replies
-
Looks reasonable! IIRC it is because (1) Flutter's default templates use dynamic loading (2) dynamic is more flexible (3) when using static linking you should be careful not to have conflicting symbols. But if you do not have these scenarios, then yes feel free to use static! |
Beta Was this translation helpful? Give feedback.
19 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Linking static libraries can maximize the security of core logic in rust. When using a dynamic link library, others can deduce the logic of the call based on the parameters and order of the calling function.
In the output products on platforms windows and android, the figures of DLL and SO can be directly seen.
Is it because static linking is not possible on these platforms that dynamic linking is used?
Beta Was this translation helpful? Give feedback.
All reactions