Latest LQ Deal: Linux Power User Bundle
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 10-04-2010, 07:34 AM   #1
LQ Newbie
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
error: asm/bitops.h: No such file or directory

I am trying to compile a file named process_30sec.c(thats a C program) through the Ubuntu terminal and it is showing the following error in command terminal:
process_30sec.c:15:23: error: asm/bitops.h: No such file or directory

I have just started using Ubuntu&Linux so I am not familiar with lots of commands and things going around.
I am using the following command to compile the process_30sec.c file:
kutub@ubuntu:~/Desktop$ gcc process_30sec.c

The above mentioned program file contains a header file <asm/bitops.h>, that I need to use in the program.
It seems that this header file is not recognized by the system, and it needs to be included somewhere in the system so that the terminal would allow me to compile this program.

Please suggests what to do??
Old 10-04-2010, 08:06 AM   #2
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,508

Rep: Reputation: 100Reputation: 100
Does anything turn up, if, in the terminal, you do

find / -name bitops.h ?
Old 10-04-2010, 08:24 AM   #3
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
It should be contained with your kernel headers. What kernel are you using? and have you installed the headers for that kernel?
Old 10-04-2010, 04:19 PM   #4
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,389

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
hay the OP also posted this on


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
no /linux-2.6.32/include/asm-sh directory in kernel jvilla1983 Linux - Kernel 1 12-28-2009 01:13 AM
asm/posix_types.h: No such file or directory DiBosco Linux - Software 0 07-24-2009 05:34 AM
unable to resolve compilation error;./List.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ amolgupta Programming 3 01-09-2009 10:09 AM
ASM x32 vs ASM x64 Tegramon Programming 3 02-27-2008 02:26 PM
how to execute a script file? Have file/directory not found error sirius57 Linux - Software 2 11-21-2007 11:43 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:40 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