LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Thread Tools
Old 01-16-2008, 12:38 AM   #1
sabarishr
LQ Newbie
 
Registered: Aug 2007
Posts: 10
Thanked: 0
cant find header-linux/module.h


[Log in to get rid of this advertisement]
hii....
i just tried to write a simple device driver program...

#define MODULE
#include <linux/module.h>

int init_module (void) /* Loads a module in the kernel */
{
printk("Hello kernel n");
return 0;
}

void cleanup_module(void) /* Removes module from kernel */
{
printk("GoodBye Kerneln");
}

when i compiled i got the error like this...

##gcc -c sree.c
sree.c:2:26: error: linux/module.h: No such file or directory
##

i then installed kernel-headers and kernel-devel,but still no change..

does any one knw which package contains this header????i am using fedora 7

thnx in advance...
sabarishr is offline     Reply With Quote
Old 01-16-2008, 05:44 PM   #2
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 440
Thanked: 3
Hi,


AFAIK, 'linux-headers'



Regards
Acron_0248 is offline     Reply With Quote
Old 01-17-2008, 01:44 AM   #3
sabarishr
LQ Newbie
 
Registered: Aug 2007
Posts: 10
Thanked: 0

Original Poster
hii...i hav already installed it but still the prob exists...
sabarishr is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
cannot find linux/module.h eerpini Fedora 4 07-02-2009 12:44 PM
cannot find linux/module.h eerpini Linux - General 1 01-06-2008 06:24 PM
Linux app to find the HTTP server header Synesthesia Linux - Software 2 02-13-2007 05:30 AM
where to look for header files for kernel module pot_po Programming 1 10-30-2002 11:57 AM


All times are GMT -5. The time now is 02:24 AM.

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