Re: Building Modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Mon, Sep 7, 2009 at 5:44 AM, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:
On Mon, Sep 7, 2009 at 4:21 PM, Shankar Ganesh<shankarganeshk@xxxxxxxxx> 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...

Thanks for your valuable help.  
--
regards,

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



--
With Regards,
ShankarGanesh K .







"The most beautiful thing we can experience is the mysterious. It is the source of all true art and science."

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux