LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 06-08-2007, 06:11 AM   #1
swamy suresh
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Rep: Reputation: 0
linux device driver programming problem


hai ,
i wrote a basic device driver program in fedora 2.6.18.1 kernel version.while compiling it is showing an error is
-->linux/module.h no such file or directory
-->linux/init.h no such file or directory
please give me suggestion to over come this problm.
if this problem is due to the installation ,please tell me how select these include files to write a device driver program during installation.

Last edited by swamy suresh; 06-08-2007 at 08:26 AM.
 
Old 06-08-2007, 09:39 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
It sounds like you do not have the kernel source headers installed. If you do, then add a compiler switch '-I path/to/includes' to tell the compiler where to look for the header file.
--- rod.
 
  


Reply



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
how to write program in C that gives details of device attached to computer raklo Linux - Kernel 2 06-04-2007 12:23 AM
help in device driver jaepi Linux - Newbie 2 05-01-2007 09:46 PM
Device drivers : How to insmod and mknod through an application program? shendeswanand Linux - Newbie 0 02-08-2006 11:28 AM
Help with converting a userspace PCI program to a Device Driver cstrask Linux - Hardware 0 10-31-2005 09:07 PM
Find out which program is using which device d_dallis_gr Linux - Software 5 06-19-2005 11:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:05 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration