0

Is there a way to check if GCC 10 and GCC 11 are compatible ?

Say I have a library built with GCC 10 and I use this lib to build my project with GCC 11.

Is it safe?

Saad Rami
  • 81
  • 6
  • As a general rule of thumb, all code you link together should always be compiled with the exact same compiler. C++ has no ABI stability guarantees. – Jesper Juhl Oct 06 '21 at 17:12
  • Are you looking for something like this https://stackoverflow.com/questions/8794964 – cigien Oct 06 '21 at 17:18
  • @JesperJuhl C++ might not have ABI guarantee but compiler and standard library vendors do https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html – Alan Birtles Oct 06 '21 at 17:26

0 Answers0