From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16380 invoked by alias); 26 Oct 2006 14:20:28 -0000 Received: (qmail 16372 invoked by uid 22791); 26 Oct 2006 14:20:28 -0000 X-Spam-Check-By: sourceware.org Received: from wx-out-0506.google.com (HELO wx-out-0506.google.com) (66.249.82.234) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 26 Oct 2006 14:20:20 +0000 Received: by wx-out-0506.google.com with SMTP id s17so431126wxc for ; Thu, 26 Oct 2006 07:20:18 -0700 (PDT) Received: by 10.90.73.3 with SMTP id v3mr1355262aga; Thu, 26 Oct 2006 07:20:18 -0700 (PDT) Received: by 10.90.87.1 with HTTP; Thu, 26 Oct 2006 07:20:18 -0700 (PDT) Message-ID: <5b7094580610260720k14216301h7a81a6faf62612dd@mail.gmail.com> Date: Thu, 26 Oct 2006 14:20:00 -0000 From: "Brian Budge" To: sameer@nextbitcpu.com Subject: Re: Including static libraries Cc: gcc-help@gcc.gnu.org In-Reply-To: <4540C0C0.30409@nextbitcpu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4540A2A8.2020902@eso.org> <20061026121030.5938.qmail@web57115.mail.re3.yahoo.com> <17728.43273.473779.862832@zebedee.pink> <4540C0C0.30409@nextbitcpu.com> X-IsSubscribed: yes 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 X-SW-Source: 2006-10/txt/msg00253.txt.bz2 I believe that if you want to statically link a file with complete path like that, you don't use the normal linker flags with gcc. You can just treat the file as if it were a big .o file and just supply the path i.e.: was gcc -l/home/sameersbn/libs/video.a470MV (at least this is what I understand from your email) becomes gcc /home/sameersbn/libs/video.a470MV Brian On 10/26/06, Sameer Naik wrote: > *Hello, > im creating a shared library. and trying to link it to a static > library with extentions of the form video.a470MV. > im including the whole path of the library in the LDFLAGS > (/home/sameersbn/libs/video.a470MV) > these are included in the Makefile.am file. > when the linking is done, no errors are flashed and the linking > procedure completes without complains. but if i run the nm command on > the library created, i dont see any symbols of the static library in the > symbol table. > instead if i extract the .o470MV file from the static library and rename > them to .o and archive it as .a and do the linking again, then it works > fine and the symbol table shows the new symbol entries. > i would like to know how to get my .a470MV libraries to successfully get > linked into my new library. > plz help > > thanks in advance > tc > sameer > * >