Find the answer to your Linux question:
Results 1 to 4 of 4
hi, I want to write a multi-shot timer program, using init_timer(struct timer_list *), add_timer(struct timer_list *) & del_timer(struct timer_list *) system calls. But when I am including the "linux/timer.h" file ...
  1. #1
    kdg
    kdg is offline
    Just Joined!
    Join Date
    Aug 2009
    Posts
    5

    Question linux/timer.h not found

    hi,
    I want to write a multi-shot timer program, using init_timer(struct timer_list *), add_timer(struct timer_list *) & del_timer(struct timer_list *) system calls. But when I am including the "linux/timer.h" file for this purpose, & compiling the program, it is giving me the following error - "linux/timer.h: No such file or directory"

    I did -> locate linux/timer.h, but it is showing nothing. I tried "find / -name 'filename.c', but it is also not giving me the path.

    Can any body please help

  2. #2
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    Did you install development packages? ... Depends on your distribution, you need to install some packages to develop applications, which contains all headers and other stuff.
    EOF

  3. #3
    kdg
    kdg is offline
    Just Joined!
    Join Date
    Aug 2009
    Posts
    5

    linux/timer.h not found

    Hi hugortega,
    Can you please tell me which development package(s) I should get installed ??......I have Fedora Core 6 in my machine......is it going to work if I get the latest version of the OS installed in my system ??

  4. #4
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    I'm not sure about FC6, but look for something like 'kernel-devel' package... also, there is a yum option called packages groups (not sure if this is available on FC6) but you can try:

    $ sudo yum groupinstall 'Development Tools'
    EOF

Posting Permissions

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