How to compile multy file LKM...?

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

 



	Hello everyone !
I've written a LKM which comprise of two source file(.c files) and two 
header files(.h files). I'm using  -> Linux-2.6.8.1 kernel
 
	- Both header files are NEED to be included in both of the source files, 
	  but when I attempt to compile my LKM I get an error 
	  message saying "symbol X is defined multiple time, First defined in file1.o" 
	- and if I remove one of the header file from one of the source 
	  file compiler says "Symbol X is undeclared"

I was able to figure out that, with both header files included in both the 
source files the conflict occurs while linking the object files of those 
two source files 
	Could you pls tell me how can I solve this problem...
-- 
regards
   -Prasad



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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