This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
arm-elf-gcc problem!
- From: "Steve Harlan" <sharlan at therongroup dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 16 Jun 2003 14:08:58 -0500
- Subject: [ECOS] arm-elf-gcc problem!
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