[ECOS] Include files

Trenton D. Adams tadams@extremeeng.com
Wed Oct 10 11:52:00 GMT 2001


Ok, I'm a complete moron.  I'm not going to tell you what I did either,
it's too embarassing! :)

> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com 
> [ mailto:ecos-discuss-owner@sources.redhat.com ] On Behalf Of 
> Trenton D. Adams
> Sent: Wednesday, October 10, 2001 11:24 AM
> To: 'eCos Discussion'
> Subject: [ECOS] Include files
> 
> 
> Do I need to do anything special for include files when writing a
> driver?
> 
> I don't need the header files exported for use by anything 
> other than my
> driver.  So, can I just put the headers in the same directory as the
> driver?
> 
> If I include a file into my driver "C" file that doesn't exist, the
> compiler doesn't even tell me that this has occurred.
> The output is below.
> 
> arm-elf-gcc -c
> -I/cygdrive/C/MyDocuments/eCosBuilds/RAMSupport_install/include
> -I/cygdrive/C/MyDocuments/eCosRepository/ecos/packages/devs/et
> h/wavelan/
> current
> -I/cygdrive/C/MyDocuments/eCosRepository/ecos/packages/devs/et
> h/wavelan/
> current/src
> -I/cygdrive/C/MyDocuments/eCosRepository/ecos/packages/devs/et
> h/wavelan/
> current/tests -I.
> -I/cygdrive/C/MyDocuments/eCosRepository/ecos/packages/devs/et
> h/wavelan/
> current/src/ -mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes
> -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections
> -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority
> -D_KERNEL -D__ECOS -Wp,-MD,src/if_wvlan.tmp -o
> src/devs_eth_wavelan_if_wvlan.o
> /cygdrive/C/MyDocuments/eCosRepository/ecos/packages/devs/eth/
> wavelan/cu
> rrent/src/if_wvlan.c
> /cygdrive/C/MyDocuments/eCosRepository/ecos/packages/devs/eth/
> wavelan/cu
> rrent/src/if_wvlan.c:89: field `rx_frame' has incomplete type
> /cygdrive/C/MyDocuments/eCosRepository/ecos/packages/devs/eth/
> wavelan/cu
> rrent/src/if_wvlan.c:90: field `tx_frame' has incomplete type
> /cygdrive/C/MyDocuments/eCosRepository/ecos/packages/devs/eth/
> wavelan/cu
> rrent/src/if_wvlan.c:122: syntax error before `static'
> ... On and on and on and on! ;)
> 
> 
> Is there something I'm missing?  As far as I know, the source 
> directory
> is always searched unless you specifiy a "-I-" option or 
> something like
> that.
> 
> Trenton D. Adams
> Extreme Engineering
> #17, 6025 - 12 St. SE
> Calgary, Alberta, Canada
> T2H 2K1
> 
> Phone: 403 640 9494 ext-208
> Fax: 403 640 9599
> 
http://www.extremeeng.com



More information about the Ecos-discuss mailing list