Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-05-2006, 07:55 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 13

Rep: Reputation: 1
Including the header file of a module in kernel code

I have written a module for adding and searching in a linked list. I have declared the structures and the function ptrs as extern in a header file and included the header file in the source code as well as the module. But when i compile the kernel it gives an error saying 'Undefined reference to ptr'

Could u plz correct me where i've gone wrong.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
source code of others.h header file cynthia_thomas Linux - General 1 02-01-2006 08:29 AM
Including header files and source files for classes Feenix Programming 8 09-28-2005 10:53 AM
How to write Makefile in 2.6 for including header files in another dir ? ashbalu Programming 0 10-19-2004 03:45 PM
Difference between including a header file and 'class' declaration in C++ scoTtkIm Programming 1 09-09-2004 04:23 AM
where to look for header files for kernel module pot_po Programming 1 10-30-2002 10:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration