Results 1 to 6 of 6
Hi All
Do not know if this the right forum, but I get the following
undefined reference to `CPU_SET'
though I have included <sched.h>
Any ideas?
Regards...
- 01-02-2008 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 3
Link error
Hi All
Do not know if this the right forum, but I get the following
undefined reference to `CPU_SET'
though I have included <sched.h>
Any ideas?
Regards
- 01-02-2008 #2
Yes. Please post a tiny, complete (compilable) program which illustrates the problem, and post the exact command you used to compile it, and post the exact, full error message you got (not a paraphrase).
--
Bill
Old age and treachery will overcome youth and skill.
- 03-06-2009 #3Just Joined!
- Join Date
- Mar 2009
- Posts
- 2
- 03-06-2009 #4
- 03-07-2009 #5Just Joined!
- Join Date
- Feb 2009
- Posts
- 45
To which Y2JRedDevil answered:
Originally Posted by vardhasu
Seeing that
Originally Posted by Y2JRedDevil
cleary states that the feature test macro «_GNU_SOURCE» must be defined, it seems you are not familiar with those. To avoid future mistakes of the same nature, I recommend reading the man page of feature test macros: Man page / 7 – feature_test_macrosCode:$> man CPU_SET […] SYNOPSIS #define _GNU_SOURCE #include <sched.h> […] void CPU_SET(int cpu, cpu_set_t *set); […]
- 03-08-2009 #6Just Joined!
- Join Date
- Mar 2009
- Posts
- 2


Reply With Quote
