Home > Back-end >  About header files are defined in the structure of the pit
About header files are defined in the structure of the pit

Time:09-28

Everyone to discuss a problem, an executable file X depends on multiple libraries, these libraries have CPP files include the a.h, a.h defines a structure body, if suddenly changed the structure of the body, part of the library to recompile libraries have no update the definition of structure parts, will collapse, while X is running at this time of the reason is that the destructor refers to the wrong address, so the question comes, several libraries with X has the structure definition _ZN9XXXD1Ev destructor, the program calls the destructor will call the library symbols or X corresponds to the symbol itself?

Please understand person to give directions, not very grateful, thank you!

CodePudding user response:

Implementation is only a ah, more will link error, do not link to successful,
  • Related