From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18802 invoked by alias); 31 Dec 2004 15:32:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 18744 invoked from network); 31 Dec 2004 15:32:37 -0000 Received: from unknown (HELO smtp.datapower.com) (67.93.141.188) by sourceware.org with SMTP; 31 Dec 2004 15:32:37 -0000 Received: (qmail 10946 invoked by uid 505); 31 Dec 2004 15:32:36 -0000 Received: from matthias@datapower.com by smtp.datapower.com by uid 502 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.42. Clear:. Processed in 0.854833 secs); 31 Dec 2004 15:32:36 -0000 Received: from unknown (HELO datapower.com) (66.238.194.189) by smtp.datapower.com with RC4-MD5 encrypted SMTP; 31 Dec 2004 15:32:35 -0000 Message-ID: <41D57223.9060100@datapower.com> Date: Fri, 31 Dec 2004 15:32:00 -0000 From: Matthias David Siebler Organization: DataPower User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703 MIME-Version: 1.0 To: Lourens Janse van Rensburg CC: gcc-help@gcc.gnu.org Subject: Re: Question about linking multiple copies of the same library References: <9F6C06DD358A58458921D913A8C8BF7ACA9471@itszaex01.intec.co.za> In-Reply-To: <9F6C06DD358A58458921D913A8C8BF7ACA9471@itszaex01.intec.co.za> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-12/txt/msg00280.txt.bz2 > This usually works because the libraries are backwards compatible, In general one would hope that to be true, but not in this case. Allow me to be more specific: i am compiling on a GNU/Linux/Intel system. I have a thirdparty library (libthird.so) that requires libstdc++-libc6.1-2.so.3 if libthird.so is linked against another newer version of libstdc++ then it will crash. However, i wish to link the rest of my application against a newer version of libstdc++ is this possible? How do i set the options so that libthird.so resolves only against libstdc++-lib6.1-2.so.3 and the rest of the code links against the newest version of libstdc++? Thanks to everyone for your help.