From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3806 invoked by alias); 16 Mar 2009 22:41:52 -0000 Received: (qmail 3796 invoked by uid 22791); 16 Mar 2009 22:41:51 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Received: from mail3-relais-sop.national.inria.fr (HELO mail3-relais-sop.national.inria.fr) (192.134.164.104) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 16 Mar 2009 22:41:41 +0000 Received: from stedding.loria.fr ([152.81.8.164]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 16 Mar 2009 23:41:38 +0100 Received: from glisse (helo=localhost) by stedding.loria.fr with local-esmtp (Exim 4.69) (envelope-from ) id 1LjLV3-0000Jg-F0; Mon, 16 Mar 2009 23:41:37 +0100 Date: Mon, 16 Mar 2009 22:41:00 -0000 From: Marc Glisse Reply-To: gcc-help@gcc.gnu.org To: Andrew Haley cc: jvl072170@cse.iitd.ernet.in, gcc-help@gcc.gnu.org Subject: Re: Binary compatibility of gcc 3.4.4 and gcc 4.2.0 In-Reply-To: <49BE2336.9090204@redhat.com> Message-ID: References: <25216.57.73.25.165.1237195371.squirrel@www.cse.iitd.ernet.in> <49BE2336.9090204@redhat.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2009-03/txt/msg00177.txt.bz2 On Mon, 16 Mar 2009, Andrew Haley wrote: >> I want to build a program in GNU g++ 4.2.0 linking it with a static >> librrayd object built using gcc 3.4.4. Does the libxyz.a compiled using >> gcc 3.4.4 link properly with a program being compiled using gcc 4.2.0 > > Usually yes, but not with C++. > >> I checked both the compilers use ABI version 2. >> Version 4.2.o uses libstdc++.so.6.0.8 while 3.4.4. uses libstdc++.so.6.0.3. >> What is the diffrence among these two versions of libstdc++?? > > These libraries are not binary compatible, sorry. You'll have to > recompile. Are you sure about that? They are both libstdc++.so.6, so the more recent version is supposed to be backwards compatible with the older one. Or were you talking about something else? To the OP: not saying what error you get does not help... -- Marc Glisse