Current location - Health Preservation Learning Network - Slimming men and women - Please explain the difference between Qt static compilation and dynamic compilation.
Please explain the difference between Qt static compilation and dynamic compilation.
The difference between static compilation and dynamic compilation;

1. A dynamically compiled executable file needs to be attached with a new dynamic link library, and commands in its corresponding dynamic link library need to be called when it is executed.

Therefore, on the one hand, the volume of the executable file itself is reduced, on the other hand, the compilation speed is accelerated and system resources are saved.

One disadvantage is that even a very simple program only uses one or two commands in the link library, and it needs to be accompanied by a relatively large link library; Second, if the corresponding runtime is not installed on other computers, the dynamically compiled executable file cannot run.