zzyang
zzyang

Reputation: 127

How to identify whether two different versions of gcc are compatible?

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?

Upvotes: 9

Views: 583

Answers (2)

Pavan Manjunath
Pavan Manjunath

Reputation: 28525

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 .

Upvotes: 2

fanlix
fanlix

Reputation: 1378

this command may make a little help:

strings - YourProgram | grep GCC

Upvotes: 0

Related Questions