From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30849 invoked by alias); 3 Jun 2004 07:26:44 -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 30829 invoked from network); 3 Jun 2004 07:26:43 -0000 Received: from unknown (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org with SMTP; 3 Jun 2004 07:26:43 -0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1BVmcW-0007t5-00; Thu, 03 Jun 2004 09:26:36 +0200 Date: Thu, 03 Jun 2004 07:26:00 -0000 To: Ashutosh Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20040603072636.GB8296@lunn.ch> Mail-Followup-To: Ashutosh , ecos-discuss@ecos.sourceware.org References: <000801c44934$8d27a850$5514010a@telxsi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000801c44934$8d27a850$5514010a@telxsi.com> User-Agent: Mutt/1.5.6i From: Andrew Lunn Subject: Re: [ECOS] problem in twothreads program X-SW-Source: 2004-06/txt/msg00036.txt.bz2 On Thu, Jun 03, 2004 at 12:02:31PM +0530, Ashutosh wrote: > Hi all, > I am trying to run the simple twothreads program. But I am getting some > error, it is as follows > > d:/cygwin/opt/ecos-2.0/examples/twothreads.c:1:29: cyg/kernel/kapi.h : No > such file or directory > d:/cygwin/opt/ecos-2.0/examples/twothreads.c:9: warning: data definition has > no type or storage class > > Actually I am trying to run this program as given in the ecos-user-guide. > giving the command like this > arm-elf-gcc -g -Itest_install/install/include > d:/cygwin/opt/ecos-2.0/examples/twothreads.c -Ltest_install/install/lib -Tta > rget.ld -nostdlib > > If I try to change the path for kapi.h in the twothreads.c , it prompt for > not able to find kernel.h. > Does I need to give manually the proper path for each file or its a linker > problem. How can missing header files be a linker problem? Anyway, its a configuration problem. How did you configure eCos? Which template did you use? My guess is you are still using the redboot template. You need a "normal" template, or no template at all so that it uses the default template. At the moment you do not have the kernel package. 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