Re: Compilation error of Dynamic Module

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

 



On Sun, Oct 20, 2002 at 03:03:16PM -0400, Murali Therthala wrote:
> gcc -DMODULE -D_KERNEL_ -I /lib/modules/`uname -r`\build/modules -c fMod3.c

\ is not a directory separator on linux-like systems. Also note that
you've told gcc to use as an include directory a directory normally
populated with object files -- not suitable for #including.

> /lib/modules/2.4.18-4GB/build/include/linux/proc_fs.h:47: parse error before `off_t'
> /lib/modules/2.4.18-4GB/build/include/linux/proc_fs.h:50: warning: `struct file' declared inside parameter list

"Parse error before <type>" is often indicitive of missing an #include
that defines a type or structure. I expect if you correct the above
problem, this one will go away. :)

-- 
http://immunix.org/

Attachment: pgp00185.pgp
Description: PGP signature


[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