隐式声明函数错误

时间:2016-08-05 10:08:17

标签: c linux ubuntu linux-kernel

使用此guide编译softiwarp代码时 在内核目录中编译代码时遇到以下错误。

error: implicit declaration of function ‘remap_vmalloc_range’
error: implicit declaration of function ‘vmalloc’
error: implicit declaration of function ‘vmalloc_user’ 
error: implicit declaration of function ‘vfree’

这里的任何人都可以帮助指导我,如何安装与此功能相关的库?我正在使用ubuntu 16.04。

1 个答案:

答案 0 :(得分:2)

这些功能在<linux/vmalloc.h>中声明。您需要#include该标题。

相关问题