This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: build "Hello world"


Jesper Skov wrote:
> 
> >>>>> "Y" == Y P Liu <86321019@stu.csie.ncnu.edu.tw> writes:
> 
> Y> Please help me ... I can's build the "Hello world" program .  the
> Y> list is my environment
> 
> Get the latest eCos from CVS. Version 1.3.1 is obsolete.

That's not the problem here. This is a tools issue:

> .....XCC = i386-elf-gcc
> ....
> 
> in C:\Program Files\Red Hat\eCos\examples\
> I type "gcc -g -I/ework/ework_install/include hello.c
> -L/ework/ework_install/lib -Ttarget.ld -nostdlib "


No, you should type i386-elf-gcc -g -I/ework/ework_install/include hello.c
 -L/ework/ework_install/lib -Ttarget.ld -nostdlib

Using "gcc" is wrong because that is your native gcc, in your case for
cygwin.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]