From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23240 invoked by alias); 22 Jun 2005 13:14:07 -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 23202 invoked by uid 22791); 22 Jun 2005 13:13:57 -0000 Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.194) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 22 Jun 2005 13:13:57 +0000 Received: by wproxy.gmail.com with SMTP id 69so272839wri for ; Wed, 22 Jun 2005 06:13:55 -0700 (PDT) Received: by 10.54.57.56 with SMTP id f56mr430784wra; Wed, 22 Jun 2005 06:13:55 -0700 (PDT) Received: by 10.54.2.32 with HTTP; Wed, 22 Jun 2005 06:13:54 -0700 (PDT) Message-ID: <122f850005062206136936e9f7@mail.gmail.com> Date: Wed, 22 Jun 2005 13:14:00 -0000 From: Balasaravanan P Reply-To: Balasaravanan P To: Balasaravanan P , ecos-discuss@sources.redhat.com In-Reply-To: <20050622105717.GD12265@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <122f8500050622022761fef63a@mail.gmail.com> <20050622101441.GB12265@lunn.ch> <122f85000506220334767c913@mail.gmail.com> <20050622105717.GD12265@lunn.ch> Subject: Re: [ECOS] Linker errors while linking ecos application with libc.a X-SW-Source: 2005-06/txt/msg00204.txt.bz2 Thanks Andrew, I changed the template from kernel to default which provides most of these functions. But still one error persists for the call "localtime" in which it says "localtime_r" undefined. For this I tried enbling "Provide BSD compatiblity functions" & "Posix time functions" & "localtime_r" when I enable also these options kernel is not building it says the following error " ecos-c/New/eCos/ecos-2.0/packages/language/c/libc/time/v2_0/src/strptime.cx= x: In function `int match_string(const char**, const char**, int)': /ecos-c/New/eCos/ecos-2.0/packages/language/c/libc/time/v2_0/src/strptime.c= xx:87: ` strlen' undeclared (first use this function) /ecos-c/New/eCos/ecos-2.0/packages/language/c/libc/time/v2_0/src/strptime.c= xx:87: (Each undeclared identifier is reported only once for each function it appears= =20 in.) /ecos-c/New/eCos/ecos-2.0/packages/language/c/libc/time/v2_0/src/strptime.c= xx:89: ` strncasecmp' undeclared (first use this function) make[1]: Leaving directory `/ecos-c/New/eCos/Application/ecos_build/language/c/libc/time/v2_0' make[1]: *** [src/strptime.o.d] Error 1 make: Leaving directory `/ecos-c/New/eCos/Application/ecos_build' make: *** [build] Error 2 " Please let me know if I had to enable any other options.=20 Thanks, Bala. On 6/22/05, Andrew Lunn wrote: > On Wed, Jun 22, 2005 at 04:04:13PM +0530, Balasaravanan P wrote: > > Basically I am using sprintf, strcmp, strcpy ... > > > > If I am not linking libc.a I am receving lot of undefined errors for > > all these functions. >=20 > If eCos is configured to build these functions they will be in > libtarget.a. >=20 > Which template are you using. The minimal template does not have these > but the default template does. >=20 > 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