On Mon, Sep 7, 2009 at 4:21 PM, Shankar Ganesh<[email protected]> wrote:
> Hi ,
>
> I am trying to build the driver as module .  And my driver file includes a
> header files placed in current working directory.
>
> ----------------------------------
> /* driver.c */
>
> #include "head.h"
>
> .............
>
> ------------------------------------
>
> And there are macros defined under header file.
>
> When i build my driver, i am getting error as the MACROS under header files
> are unresolved.
> Example :  /home/bgh11183/driver.c:3851: error: 'LCD_INT' undeclared (first
> use in this function)


It's been a long time since I build my kernel modules just for
learning purposes. Maybe you need to add -L <path to dir which holds
your header> to CFLAGS...
-- 
regards,

Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to