Sometimes I get libraries from different design teams. One uses gcc 3.x and another uses gcc 4.x. How can I identify whether these two libraries are compatible? I know it is something with libstdc++, but could you please give me a clear answer?
This is a good starting point
http://gcc.gnu.org/onlinedocs/gcc/Compatibility.html
This article discusses binary compatibility ( it can apply to libraries too ) between different tools. This still holds good when the different tools are differnt versions of gcc. One major thing to be checked is application binary interface (ABI) conformance.
And this SO post says that since GCC 3.4.0 ABI is forward compatible. I.E. a library made using an older release can be linked with a newer one and it should work .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With