This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Can't compile server_test.c
- To: "'Jonathan Larmour'" <jlarmour at redhat dot com>
- Subject: RE: [ECOS] Can't compile server_test.c
- From: "Trenton D. Adams" <tadams at extremeeng dot com>
- Date: Mon, 18 Jun 2001 14:48:11 -0600
- Cc: "'eCos'" <ecos-discuss at sources dot redhat dot com>
- Organization: Extreme Engineering
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/
>