Find the answer to your Linux question:
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 ...
  1. #1
    Just 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?

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Quote Originally Posted by nomadoro View Post
    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?
    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.

  3. #3
    Just 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?

  4. #4
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Quote Originally Posted by nomadoro View Post
    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?
    I don't know much about fedora. Maybe there's some kernel-devel package?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...