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


  Search this Thread
Old 04-19-2004, 11:41 AM   #1
LQ Newbie
Registered: Mar 2004
Distribution: United Linux(they forced me to)
Posts: 16

Rep: Reputation: 0
I can't compile with <linux/timer.h>

I am having some problems compiling <linux/timer.h>. Evey time I include it I get the same compile errors. I have tried googling a bunch of things and no luck. I have tried looking the header file but that doesn't help much. I have tried looking at changelogs but I don't know what to look for. Any help would be appriciated.

Kernel 2.4.21
gcc 3.2.2

Here is the list of errors.

In file included from PrepTest.cpp:16:
/usr/include/linux/timer.h:16: field `list' has incomplete type
/usr/include/linux/timer.h: In function `void init_timer(timer_list*)':
/usr/include/linux/timer.h:41: `struct timer_list' has no member named `list'
/usr/include/linux/timer.h:41: `struct timer_list' has no member named `list'
/usr/include/linux/timer.h: In function `int timer_pending(const timer_list*)
/usr/include/linux/timer.h:46: `struct timer_list' has no member named `list'

Old 04-19-2004, 11:58 AM   #2
LQ Newbie
Registered: Mar 2004
Distribution: United Linux(they forced me to)
Posts: 16

Original Poster
Rep: Reputation: 0
The only hint I have found so far is this little blurb from the 2.5.30 changelog

[PATCH] fix include/linux/timer.h compile

include/linux/timer.h needs to include <linux/stddef.h>
to get the definition of NULL.

Is this relevant or am I way off base?


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
problem in /usr/include/linux/timer.h santhosh.linux Linux - Software 0 12-01-2005 11:49 PM
Linux first timer... (newbie) reborn Linux - Newbie 10 05-18-2005 10:41 AM
Window VS Linux : timer question chanwing Programming 13 04-05-2005 05:27 AM
Linux C : A better way to sleep/timer? jimmy416 Programming 8 10-14-2003 01:58 PM
Linux first timer: Unable to get ADSL to work janneh Linux - Networking 5 10-05-2003 10:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration