From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29007 invoked by alias); 17 Nov 2003 09:09:51 -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 28998 invoked from network); 17 Nov 2003 09:09:50 -0000 Received: from unknown (HELO flygp.se) (194.14.251.16) by sources.redhat.com with SMTP; 17 Nov 2003 09:09:50 -0000 Received: (qmail 16449 invoked from network); 17 Nov 2003 09:09:49 -0000 Received: from unknown (HELO limbo) (194.14.251.43) by flygpl2.flygp.se with SMTP; 17 Nov 2003 09:09:49 -0000 Message-ID: <000801c3aceb$a6d0ce20$2bfb0ec2@flygp.se> From: "Bo Do" To: Subject: How handle static libraries? Date: Mon, 17 Nov 2003 09:09: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/msg00216.txt.bz2 Hey all, I've written some (static) libraries I use pretty often. Lets call them A, = B, C..... When I want to use one, lets say B, I simply include B.h and link in B in m= y program. My question is, I have a library C which needs/uses library A. Can I compil= e/archive C in some way so that when I want to use C in a program, I just include C.h= and link in C? What I have to do now is to also link A to my program. But this look wierd = (to me!) because my program doesn't use A. Thanks for any tip, /Bo