Results 1 to 4 of 4
Hi!
I'm writing a program that uses struct timer_list declared in < linux/timer.h >. As I could not find the file in /usr/include/linux/ directory, I tried to include the file ...
- 04-09-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 21
About <linux/timer.h> !
Hi!
I'm writing a program that uses struct timer_list declared in <linux/timer.h>. As I could not find the file in /usr/include/linux/ directory, I tried to include the file in /usr/src/kernels/2.6.23.1-42.fc8-i686/include/linux/ directory. But after compilation, gcc reports over fifty lines of errors in timer.h and those header files included in timer.h. What's the problem?
- 04-09-2008 #2Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
The /usr/include/linux/* stuff is usually installed via a package called linux-headers or kernel-headers or the like.
NEVER ever use the headers from an specific kernel unless you know what you are doing, and your life will be much easier. They are not meant to be used on user land programs.
- 04-09-2008 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 21
I looked for the packages in my Fedora 8 installation DVD but cannot figure out which package to install. What name should it be like?
- 04-09-2008 #4Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513


Reply With Quote
