This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Version mismatch between code and libraries compiled with different gcc version
- From: Andrew Haley <aph at redhat dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 24 Mar 2010 13:53:43 +0000
- Subject: Re: Version mismatch between code and libraries compiled with different gcc version
- References: <197677.54196.qm@web81206.mail.mud.yahoo.com>
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.