![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 1
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Programmer
|
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"; |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|