This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: fail to compile using GCC
- To: Piteir <piter197 at yahoo dot com>
- Subject: Re: [ECOS] fail to compile using GCC
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 29 May 2001 18:23:33 +0100
- Cc: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <20010529085941.99261.qmail@web12301.mail.yahoo.com>
Piteir wrote:
> I try to compile using:
> arm-elf-gcc -g -o hello.exe -I/c/usr/include hello.c
> -L/c/usr/lib -T/usr/lib/target.ld -nostdlib
>
> but got error message that cannot find "target.ld"
> file, I have tried to find it and still cann't find
> it.
/usr/lib isn't the right path (nor is /c/usr/include nor /c/usr/lib). You
should be pointing at the eCos "install" directory which you would have
built from within the configuration tool.
> -is it possible that something wrong when I built the
> ARM development tools for windows? or this is another
> kind of problem?
>
> -also I got confused because the real syntax example
> for compiling is like:
> arm-elf-gcc -g -o 'filename'.exe -IINSTALL_DIR.
> what INSTALL_DIR here supposed to be, the cygwin or
> eCOS dir?
Your eCos install directory.
> -I also try to build the tests from eCOS configuration
> tools but fail to run that, I got warning on "set
> remotedebug"
You can ignore this warning.
> and some errors so I use cywin to run the
> tes and success, is the anyone know how to fix this so
> can be run in eCOS configuration Tool.
You'll have to be more specific about the errors.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine