abi compatibility

api

Interface between source code and library files, functional form,

abi

The binary interface between the application and the operating system, such as byte alignment, data type, calling method, etc. Several issues break binary compatibility:

  • Add new virtual function
  • Do not export or remove an exported class
  • Change class inheritance
  • Change the order in which virtual functions are declared (the offset changes, causing the call to fail)
  • Add new non-static member variables (the memory layout of the class changes and the offset also changes)
  • Change the declaration order of non-static member variables

Reference: https://www.cnblogs.com/my_life/articles/12154978.html

Guess you like

Origin blog.csdn.net/daoer_sofu/article/details/130544242