我正在尝试将 math.h 包含在我的 Linux 内核模块中。如果我使用,
#include '/usr/include/math.h'
它给我这些错误:
error: features.h: No such file or directory
error: bits/huge_val.h: No such file or directory
error: bits/mathdef.h: No such file or directory
error: bits/mathcalls.h: No such file or directory
这是为什么?
最佳答案
您不能在内核模块中使用 C 库,对于数学库部分更是如此。
关于c - 如何在内核源文件中包含 math.h #include <math.h>?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37462058/