From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30951 invoked by alias); 19 Nov 2003 08:22:36 -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 30935 invoked from network); 19 Nov 2003 08:22:34 -0000 Received: from unknown (HELO flygp.se) (194.14.251.16) by sources.redhat.com with SMTP; 19 Nov 2003 08:22:34 -0000 Received: (qmail 18043 invoked from network); 19 Nov 2003 08:22:34 -0000 Received: from unknown (HELO limbo) (194.14.251.43) by flygpl2.flygp.se with SMTP; 19 Nov 2003 08:22:34 -0000 Message-ID: <009701c3ae77$60f1b3a0$2bfb0ec2@flygp.se> From: "Bo Do" To: References: <363801FFD7B74240A329CEC3F7FE4CC40D3409@ntxboimbx07.micron.com> Subject: Re: How handle static libraries? Date: Wed, 19 Nov 2003 08:22:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-11/txt/msg00258.txt.bz2 Thank you Lyle for clearing things up. =3D) I'll take a look at .la stuff. Thanks everyone for pointing me in the right direction. /Bo ----- Original Message -----=20 From: To: ; Sent: Tuesday, November 18, 2003 7:20 PM Subject: RE: How handle static libraries? Bo, Basically, the common way to do it is the way you're doing it. If C uses A and you use C, you link to both C and A (in that order). Something you might look at, however, is .la files (usually created by libtool, I believe). These are information files that the compiler/linker can use to know how to use a given library. It may also be able to tell the compiler what libraries your library depends on so that it can link them in automatically. Now, I'm not very familiar with these files and how they work, but it might be something you would want to look into. You may find your answer there. Good luck, Lyle -----Original Message----- From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of Bo Do My question in this post is actually: What is the common way to handle/create static libraries which uses other libraries? Thanks for reading this post. Don't know if it makes sense! =3D) /Bo =20