Linked Questions
37 questions linked to/from Difference between static and shared libraries?
22 votes
2 answers
26k views
What is the difference between a static library and a dynamic one [duplicate]
In C language what is the difference between a static libraray and a dynamic library?
9 votes
0 answers
1k views
What is the difference between static and dynamic modules in nginx? [duplicate]
I wanted to know what is the difference between static and dynamic modules in nginx and which ones are better? What are the advantages/disadvantages of building a module as static / dynamic module.
0 votes
1 answer
489 views
how to compress all the DLL files into the main exe file? [duplicate]
I am using SDL2 and SDL2 image with c++ and there are So many DLL's which are neccessary for the main.exe to run. I want to submit the project in single main.exe file without the dll's. Is this ...
509 votes
16 answers
337k views
Static linking vs dynamic linking
Are there any compelling performance reasons to choose static linking over dynamic linking or vice versa in certain situations? I've heard or read the following, but I don't know enough on the subject ...
22 votes
3 answers
17k views
File format differences between a static library (.a) and a shared library (.so)?
I know that there are lots of questions about the use cases of shared vs static libraries, this question is not about that. I am asking about differences in file format stored on disk. Why question ...
9 votes
2 answers
11k views
What is the difference between shared and dynamic libraries in C?
I don't understand the difference between the two types of libraries, and many websites say that they are the same thing, but at school we use two different commands to create them dynamic library $ ...
5 votes
8 answers
16k views
cv2 import error in virtual environment
I tried everything in the virtual environment, but again and again "no module named opencv". I checked the site packages folder and found that there is no cv2 folder, like I found numpy, pip folders; ...
4 votes
1 answer
5k views
Are there different types of .lib files?
I've compiled a minimal example of code using Qt, and noticed that linking to its .lib files added a requirement for my compiled program to link to its corresponding .dll file. I want to create a ....
8 votes
1 answer
5k views
What flags to use for ./configure when building Python from source
I am building Python 3.10 from source on Ubuntu 18.04, following instructions from several web links, primarily the Python website (https://devguide.python.org/setup) and RealPython (https://...
2 votes
4 answers
3k views
Should I create .a or .so when packaging my code as a library?
I have a software library and I used to create .a files, so that people can install them and link against them: g++ foo.o -L/path/to -llibrary But now I often encounter third-party libraries where ...
3 votes
3 answers
3k views
information about .so files
I am new in C programing.I have no Idea about .so files. what is the need of it ? how can I create it ? how to bind my C code or Binary with it ? If I don't make any .so file and directly make ...
5 votes
3 answers
1k views
Distribute Libraries Written in C
Suppose I have some code written in C with some data structures defined and some functions to work with those structures and all that is in a directory called src1. Suppose now I want to distribute ...
7 votes
1 answer
5k views
Runtime library vs. dynamic library
I've been searching and reading for a while, but still cannot get clean answers: What's the difference between runtime library and dynamic library? To be specific, I want to know the following ...
4 votes
2 answers
3k views
Which version of ffmpeg is newer ffmpeg-N-100679-g24dc6d386c or ffmpeg-N-4.3.1?
For my app i need FFmpeg, so i went to official website, for windows builds it said go here :- https://github.com/BtbN/FFmpeg-Builds/releases/tag/autobuild-2021-01-20-13-01 But now i have a problem. ...
1 vote
1 answer
5k views
Creating debug build FFMpeg static libraries with Windows compiler
We are using the FFMpeg static libraries compiled via the --toolchain=msvc switch with the VS2010 compiler linked to the static runtime (-MT). These libraries work fine but they are linked to libcmt....