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: "Trenton D. Adams" <tadams at extremeeng dot com>
- Subject: Re: [ECOS] Can't compile server_test.c
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Mon, 18 Jun 2001 21:50:58 +0100
- Cc: 'eCos' <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <000401c0f837$fd1cd9b0$090110ac@TRENT>
"Trenton D. Adams" wrote:
>
> 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?
It's specific to the net stack port. You don't need it for the rest of
eCos. It has to be _everywhere_ that the net stack header files can be
used, so adding it on the compile line is less error-prone.
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/