LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 10-04-2010, 08:34 AM   #1
chronickut
LQ Newbie
 
Registered: Oct 2010
Posts: 1

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


Hi,
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??
Thanks!!
 
Old 10-04-2010, 09:06 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,477

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

find / -name bitops.h ?
 
Old 10-04-2010, 09:24 AM   #3
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,851

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?
ciao,
jdk
 
Old 10-04-2010, 05:19 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 13,283

Rep: Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775
hay the OP also posted this on
"linux.com"
http://www.linux.com/learn/answers/5...e-or-directory
 
  


Reply


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 02:13 AM
asm/posix_types.h: No such file or directory DiBosco Linux - Software 0 07-24-2009 06:34 AM
unable to resolve compilation error;./List.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ amolgupta Programming 3 01-09-2009 11:09 AM
ASM x32 vs ASM x64 Tegramon Programming 3 02-27-2008 03:26 PM
how to execute a script file? Have file/directory not found error sirius57 Linux - Software 2 11-22-2007 12:43 AM


All times are GMT -5. The time now is 11:27 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration