October 4, 2010

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 , 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!!

Have you found a resolution to this issue yet?

Have you found a resolution to this issue yet?

Like  (0 likes)

On my system I am seeing the necessary file in /usr/include/ext2fs/bitops.h,...

On my system I am seeing the necessary file in /usr/include/ext2fs/bitops.h, it was installed as part of the e2fsprogs package. In addition there are several files that came by that name in the kernel source, you can install the kernel source by typing "sudo apt-get install linux-kernel-devel" into the terminal.

Like  (0 likes)

PLEASE READ your fourm post at Linuxquestions ...

PLEASE READ your fourm post at Linuxquestions

http://www.linuxquestions.org/questions/linux-newbie-8/error-asm-bitops-...

you posted this there also
and why are you building software IN THE DESKTOP folder

Like  (0 likes)
Click Here!