fatal error: linux/interrupt : no such file or directory
Linux - NewbieThis 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!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
fatal error: linux/interrupt : no such file or directory
hi sir/madam
i am developing code for interrupt
when i am including " #include<linux/interrupt.h>"
i am getting fatal error : linux/interrupt.h no such file or directory
why i am getting this error and how to solve this error.
but when i am include that header file and ill get one more error, finally i ll get linux/compiler.h error
but all these files are present in</usr/src/linux-headers-4.4.0-151/include/linux/
can you please give me appropriate answer for this problem
Based on the information shown, your compile line or Makefile, if you have one, does not reference the /usr/src/linux-headers-4.4.0-152/include/linux path.
If you're using GCC, then read the manual page and review information about how to specify include paths.
I know that you are not using a Makefile, however I also gave you guidance about the gcc compiler and what to check.
If you are going to resist looking up information that is recommended to you and putting forth any real attempt to solve your problem, there is little anyone on the LQ site can do to offer you any assistance.
Quote:
Originally Posted by mohanmoni
hi sir
i am just compiling below code please just refer and find out the problem
c file name = gpio_interrupt.c
#include<stdio.h>
#include<linux/interrupt.h>
int main()
{
int a,b,c;
}
and
i am compiling as follows
cc gpio_interrupt.c
i am getting error as follows
fatal error : linux/interrupt.h no such file or directory
Also minor additional note. This code does nothing but declares three variables. You do not need any #include files at all in the file. For any future posts including code, please use [code] tags to preserve formatting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.