Re: How to compile multy file LKM...?

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

 



Prasad wrote:
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"
It seems you have declared the same symobol in file1.o and file2.o. Try to use the extern keywork or declare the symbol in the header file.


-- 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