开发者

GCC/MingW compiling on different versions

开发者 https://www.devze.com 2023-01-22 01:26 出处:网络
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 ?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消