9

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?

Pavan Manjunath
  • 27,404
  • 12
  • 99
  • 125
zzyang
  • 127
  • 4

2 Answers2

1

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 .

Community
  • 1
  • 1
Pavan Manjunath
  • 27,404
  • 12
  • 99
  • 125
0

this command may make a little help:

strings - YourProgram | grep GCC

fanlix
  • 1,248
  • 1
  • 13
  • 22