From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14831 invoked by alias); 19 Jul 2005 07:15:23 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 14466 invoked by uid 22791); 19 Jul 2005 07:15:05 -0000 Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 19 Jul 2005 07:15:05 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1DumJb-0002TO-00; Tue, 19 Jul 2005 09:14:55 +0200 Date: Tue, 19 Jul 2005 07:15:00 -0000 To: Tianjun - zdk Cc: "ecos-discuss@sources.redhat.com" Message-ID: <20050719071455.GM15048@lunn.ch> Mail-Followup-To: Tianjun - zdk , "ecos-discuss@sources.redhat.com" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i From: Andrew Lunn Subject: Re: Re: [ECOS] how to build a driver to a single library X-SW-Source: 2005-07/txt/msg00177.txt.bz2 On Tue, Jul 19, 2005 at 09:01:28AM +0800, Tianjun - zdk wrote: > Hi,Andrew > > so i should not to linked the library to extras.o? > and just to generate a libarery mylib.a use my favourite name? > and then use this command to link it in my Application > > compile -lmylib mylib.a application.c > > can this working? There is no need to link your library to extras.o. Just link your application with the library as normal, eg something like arm-elf-gcc -o foobar application.o -lmylib -nostartfiles -Ttarget.ld Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss