Hi, I tried to include /usr/src/linux-2.4/ header files instead of /usr/include by giving -I option in Makefile. While compiling I found out that gcc was still using /usr/include/.... files! Is -I option usage correct? How do I instruct the compiler to use /usr/src/linux...... include files? Thanks! Atul. On Mon, 15 Jul 2002 13:55 +0200, Michael Schwendt wrote: u> On 2002-07-15, Atul Sowani wrote: u> u> AS> I am trying to compile a character device kernel module, as u> AS> given in the example at u> AS> http://www.ibiblio.org/mdw/LDP/lkmpg/node14.html (attached u> AS> with this mail for reference). u> AS> u> AS> When I compile the code on RHL7.3, I literally get hundreds u> AS> of errors. They begin with parse problem in module.h file. I u> AS> compile the code with -DMODULE -D__KERNEL__ -DLINUX -O2 flags. u> AS> u> AS> Also, I checked my "linux/version.h" file and I found that the u> AS> kernel version there is not 2.4.18 but it was 2.4.9! How is u> AS> that? I couldn't get it. Ultimately, I changed the string u> AS> manually. But this does not help in any way. u> u> Do not compile with the glibc kernel headers in /usr/include/linux. u> u> Do compile with the kernel headers in /usr/src/linux-2.4/include/linux. u> u> If you don't have them, install the kernel-source-2.4.18-?.i386.rpm u> package. u> u> Michael u> u> _______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@redhat.com https://listman.redhat.com/mailman/listinfo/redhat-devel-list