Version mismatch between code and libraries compiled with different gcc version

Andrew Haley aph@redhat.com
Wed Mar 24 14:35:00 GMT 2010


On 03/24/2010 01:34 PM, Bud Davis wrote:

> i did RTFM on this, it was very informative but did not answer my question.
>  
> If I am using gcc-4.4, can i link to a library compiled with gcc-4.3 ?  
>  
> How about 4.1 ?
>  
> Or is compatability only when the exact 4.X compiler is used for both the libs and the other code.

It depends on the language.  With C you're OK, with C++ you must
use the same compiler and libraries.

Andrew.



More information about the Gcc-help mailing list