Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 28th, 2005, 12:23 AM   #1
linusoft
Newbie
 
Join Date: Mar 2005
Posts: 1
Rep Power: 0 linusoft is on a distinguished road
Question Problem with #include <linux/sched.h>

i have a problem with header file #inlcude <linux/sched.h>


when i try to include that file in my c code it gives me the following errors,

/usr/include/linux/times.h:7: error: syntax error before "clock_t"
/usr/include/linux/times.h:9: error: syntax error before "tms_cutime"
/usr/include/linux/times.h:10: error: syntax error before "tms_cstime"
/usr/include/asm/siginfo.h:48: error: syntax error before "clock_t"
/usr/include/asm/siginfo.h:62: error: syntax error before '}' token
/usr/include/asm/siginfo.h:63: error: syntax error before '}' token
/usr/include/linux/time.h:9: error: redefinition of `struct timespec'
/usr/include/linux/time.h:17: error: redefinition of `struct timeval'
/usr/include/linux/sched.h:91: error: redefinition of `struct sched_param'
*** Exited with status: 2 ***

Thanks for Any help in this matter
linusoft is offline   Reply With Quote
Old Mar 28th, 2005, 3:13 AM   #2
Lance
Programmer
 
Lance's Avatar
 
Join Date: Oct 2004
Location: Chicago, IL USA
Posts: 74
Rep Power: 4 Lance is on a distinguished road
Send a message via AIM to Lance
Err, what are you doing? Some kernel hacking?

/usr/include/linux and asm/ are kernel headers. Used for compiling the Linux kernel. Nothing else.

You shouldn't be touching them. What are you attempting to code anyways?
__________________
/* LANCE */
C++;  /* this makes C bigger but returns the old value */
char *site = "slackwise.net",
     *home = "lance.slackwise.net",
     *pics = "flickr.com/photos/slackwise";
Lance is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC