This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Splitting driver code between I/O layer and driver layer
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Samie Hassan Ghauri <samiehg at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 24 Aug 2004 16:18:41 +0200
- Subject: Re: [ECOS] Splitting driver code between I/O layer and driver layer
- References: <BAY12-F11Sk5xgqUarv000533a0@hotmail.com>
On Tue, Aug 24, 2004 at 02:13:54PM +0000, Samie Hassan Ghauri wrote:
> I am developing device driver for an LCD device. I have implemented the I/O
> APIs (eg write, read etc) in a separate file and stored in packages/io/lcd.
> The device specific code is stored in another file in devs directory. I
> have included the devtab_entry () in the the file that contains device
> specific code which contains the pointer to I/O functions. But I try to
> build the library, it gives the following errors:
>
> /ecos-c/ecos/packages/devs/lcd/leon/current/src/lcd_leon.c:108:
> `lcdio_devio' undeclared here (not in a function)
This is a compile time error, not a linker error. So it looks like you
have not included the header files needed.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss