[ECOS] arm-elf-gcc problem!

Steve Harlan sharlan@therongroup.com
Mon Jun 16 19:09:00 GMT 2003



Hello,

I cannot compile a hello.c program with the pre-built arm-elf gnutools from ecoscentric.
I downloaded the eCos installation tool by using the following command at a bash prompt:
      wget --passive-ftp ftp://sources.redhat.com/pub/ecos/ecos-install.tcl 
I ran ecos-install.tcl from cygwin command line. selected 'arm-elf'
   arm-elf gnutools 1.4.2 
   ecos 2.0
Installed to /opt/ecos, (d:/cygwin/home/sharlan/opt/ecos), my home directory.
When I compiled with: 
    "arm-elf-gcc -Wall -g -o hello hello.c".
I get an error like: 
    "<path>/ld: cannot find -lg"
    "collect2: ld returned 1 exit status"

I also get a warning if I put a printf statement in the program.
    "hello.c:21: warning: implicit declaration of function 'printf'"

Best Regards

Steve Harlan

--
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