This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Building a Toolchain
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: Ramapriya Rangachar <ramapriya1 at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 13 Feb 2002 13:40:46 +0000
- Subject: Re: [ECOS] Building a Toolchain
- Organization: Red Hat UK Ltd.
- References: <F33stPGtPrPrvCWO6hm0001770d@hotmail.com>
Ramapriya Rangachar wrote:
>
> HI
>
> This is to do with cygwin again ...
> I built the arm tools in the following order:
> binutils, gcc, newlib, insight.
> Did I do something wrong here (in terms of order)?
>
> I'm trying to make a C++ project. I get linker errors about undefined
> references to math fns, memset(), free() etc.
> OK, it cannot find the libraries ...
> Since I installed newlib, I give a -LC:\cygwin\usr\local\arm-elf\lib
> to the linker .... 'cos I see run-time and libs there ...
> Still no go.
>
> How do I fix this? and can I update the env with the path to whereever
> newlib is?
If it's newlib, and not eCos, you want to use that's what you would do.
For eCos, you should link with the eCos library, generally using:
-L/your/ecos/build/tree/install/lib -Ttarget.ld -nostdlib
on your link line.
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
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss