This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: how to solve these compile error?
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: li hui <lhbyron at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 24 Oct 2002 04:05:00 +0100
- Subject: Re: [ECOS] how to solve these compile error?
- References: <F80TAX6xFrWVsSvOwWB0000a154@hotmail.com>
li hui wrote:
>
> Now I write some component for eCos,and use eCos configtools build the
> whole eCos packages, all of these work correctly.
> But when I use i-386-elf-gcc compile my application with header file of
> the component that newly added, it will occur following errors:
> (in my application,ktaskapi.h is my header file for my component, and in
> this file just two sentences:#include <pkgconf/kernel.h>
> #include <cyg/infra/cyg_type.h> )
>
> In file included from
> /ecos_base/TASK1_install/include/cyg/kernel/ktaskapi.h:11,
> from tasktest.c:2:
> /ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:173: parse error
> before `__tmp1'
This looks like a cygwin line ending problem. Your files have CRLFs at the
end of each line, but are mounted in cygwin "binary" mode. Use the cygwin
"mount" command to mark the location of your sources as "text" mode.
mount -t c:/cygwin/ecos_base /ecos_base
( assuming /ecos_base is actually located in C:\cygwin\ecos_base)
Jifl
--
eCosCentric http://www.eCosCentric.com/ <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss