GCC/MingW compiling on different versions
I'm wondering can I use static libraries (lib*.a files) compiled with one version of MingW and use them on the other version ? Or do I have to recompile al开发者_高级运维l libraries ?
- Static libraries (
*.a
files) are just archives of object files (*.o
files) - You can mix together pieces of code compiled against different versions of a library (here, the MinGW library) as long as they maintain binary code compatibility. In the case of MinGW, this means all 3.* versions play nice together.
Yes you can. You don't need to recompile them if they are not giving any problems
精彩评论