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: Can't compile server_test.c


Thanks Jonathan, much appreciated.  I didn't know __ECOS had to be
defined.  Is it better practice to put the __EDB7211 and __ECOS #defines
in the source instead, or on the command line?

p.s.
Why do my other simple programs compile fine without __ECOS?  I suppose
it's because they don't actually use any kernel APIs or something right?

> -----Original Message-----
> From: jlarmour@cambridge.redhat.com 
> [mailto:jlarmour@cambridge.redhat.com] On Behalf Of Jonathan Larmour
> Sent: Monday, June 18, 2001 2:41 PM
> To: Trenton D. Adams
> Cc: 'eCos'
> Subject: Re: [ECOS] Can't compile server_test.c
> 
> 
> "Trenton D. Adams" wrote:
> > 
> > I'm having trouble compiling server_test.c  It says all the files 
> > below are missing.  Anyone have any idea why this might happen?
> > 
> > $ make server_test
> > arm-elf-gcc -mcpu=arm7tdmi -D__EDB7211 -c -o server_test.o -g -Wall 
> > -I/c/MyDocuments/eCosDevelopment/RAMSupport_install/include
> > -ffunction-sections -fdata-sections server_test.c
> 
> This compile line needs a -D__ECOS. A better way to build 
> these tests is by enabling the CYGPKG_NET_BUILD_TESTS option 
> and doing "make tests".
> 
> 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 Come to the Red Hat 
> TechWorld open source conference in Brussels!
> Keynotes, techie talks and exhibitions    
> http://www.redhat-techworld.com/
> 


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