c - 如何在内核源文件中包含 math.h #include <math.h>?

标签 c math module kernel

我正在尝试将 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/

相关文章:

c - 使用 glibc 在 Windows 中未定义对 sleep() 的引用

在 C 中使用 while 循环的复合条件。

c - 使用 cygwin 进行简单的 pthread 编程(意外结果)

algorithm - 最少要调用多少电话?

math - float 学有问题吗?

ruby - Ruby 中的命名空间困惑

class - 如何将 WithEvents 关键字与全局变量一起使用?

c - 代码块是否声明了 NUL?

Java程序以10^-6精度确定嵌套根式常量的值

ruby-on-rails - rails : How do I write tests for a ruby module?