C++的二进制兼容问题(以QT为例)

二进制不兼容带来的问题(需要重新编译库文件,以前编译的失效):

http://my.oschina.net/lieefu/blog/505363?fromerr=f5jn7rct

二进制不兼容的原理:

https://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B

通俗的解释:
二进制兼容就是例如 5.4.1编译的应用可以和5.5.0的库一起使用
linux下比较常见
win, osx一般都自带对应的库,一般不用这种方式

自带库,一般就是指user32.dll这种东西?
qt库,非系统库

5.4.0的二进制不兼容好像只是windows上msvc编译器
https://raw.githubusercontent.com/qtproject/qtbase/dev/dist/changes-5.4.1

Restored binary compatibility with Qt 5.3.2 on Windows when using MSVC
2012 or MSVC 2013. This means that Qt 5.4.1 is no longer binary compatible
with Qt 5.4.0 when using either of those compiler

posted @ 2015-12-28 18:26  findumars  Views(1271)  Comments(0Edit  收藏  举报