This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Hello, World issues
- From: Bart Veer <bartv at ecoscentric dot com>
- To: josh at spcontrols dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 26 Jul 2005 19:05:48 +0100 (BST)
- Subject: Re: [ECOS] Hello, World issues
- References: <42E66F9E.600@spcontrols.com>
>>>>> "Josh" == Joshua Fitzgerald <josh@spcontrols.com> writes:
Josh> I built eCOS for the Linux synthetic target using all of the
Josh> default settings. I then wrote a very simple "Hello, World"
Josh> C program and attempted to compile it with the following
Josh> command line:
Josh> i386-elf-gcc -I/home/josh/prj/smarthub/ecos_synth_install/include
Josh> HelloWorld.c -L/home/josh/prj/smarthub/ecos_synth_install/lib
Josh> -Ttarget.ld -nostdlib
Josh> and I get an error from the linker complaining that it
Josh> cannot find "libgcc_eh.a". I did a search for this file and
Josh> could not find it in the project's buidl subdirectories or
Josh> in the eCos GNU toolchain directories. Any ideas?
Why are you building with i386-elf-gcc? The default should be gcc,
i.e. the native Linux compiler, unless you are doing something very
unusual like cross-compiling the synthetic target under Windows. AFAIK
all recent versions of the native gcc should come with a libgcc_eh.a.
Bart
--
Bart Veer eCos Configuration Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss