Compiler version in C++ vs pre-compiled C libraries

  abi, c++, gcc, linux

I have a code that uses std=c++20.

I want to use a C library that was build with old gcc version.

Should I recompile the C library using the same compiler ?

If no, how could you judge that the 2 ABIs are compatible?

Source: Windows Questions C++