本文主要是介绍[求助] linux编译内核模块 sched.h 找不到,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
本意设置CPU亲和度 sched_setaffinity,但是cpu_set_t说没定义,它定义在本机/usr/include/sched.h
GCC编译目录也包含这个路径
#include "..." search starts here:
#include <...> search starts here:/usr/lib/gcc/x86_64-linux-gnu/5/include/usr/local/include/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/usr/include/x86_64-linux-gnu/usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "<stdin>"
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-lin
这篇关于[求助] linux编译内核模块 sched.h 找不到的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!