From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9786 invoked by alias); 10 Mar 2005 16:22:55 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 9410 invoked from network); 10 Mar 2005 16:22:39 -0000 Received: from unknown (HELO relay2.seleniacomms.com) (81.120.201.9) by sourceware.org with SMTP; 10 Mar 2005 16:22:39 -0000 Received: from gesss006 ([10.31.237.12]) by relay2.seleniacomms.com (8.12.11/8.12.11) with ESMTP id j2AGMGdO010099 for ; Thu, 10 Mar 2005 17:22:17 +0100 (CET) Subject: Re: Linking against shared library linked to another shared one, please help To: binutils@sources.redhat.com Message-ID: From: matteo.pampolini@seleniacomms.com Date: Thu, 10 Mar 2005 16:22:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-SW-Source: 2005-03/txt/msg00305.txt.bz2 matteo.pampolini@seleniacomms.com writes: > because I was not able to understand how to use it, could you please help > me? Please send a message to the mailing list (not just to me) explaining what you thought would happen, and what happened that was different. Basically if the linker sees that -la requires -lb (has a DT_NEEDED entry for -lb), the linker will search for -lb using directories named in -rpath-link. If it finds the library, all should be well. If it does not find the library anywhere, it will issue a warning. This warning is intended to tell you that your program will not execute because the dynamic linker will not be able to find -lb. Ian But my problem is not the linker warning, is the fact that the app doesn't link at all because of unresolved symbols (the ones implemented inside lb). Thanks, Matteo.