[ECOS] Building a Toolchain

Jonathan Larmour jlarmour@redhat.com
Wed Feb 13 05:40:00 GMT 2002

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.

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

More information about the Ecos-discuss mailing list