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]

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/eth/wavelan/
current
-I/cygdrive/C/MyDocuments/eCosRepository/ecos/packages/devs/eth/wavelan/
current/src
-I/cygdrive/C/MyDocuments/eCosRepository/ecos/packages/devs/eth/wavelan/
current/tests -I.
-I/cygdrive/C/MyDocuments/eCosRepository/ecos/packages/devs/eth/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


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