gpt4 book ai didi

c - 函数错误的隐式声明

转载 作者:太空宇宙 更新时间:2023-11-04 08:11:51 24 4
gpt4 key购买 nike

使用此 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。

最佳答案

这些函数在 <linux/vmalloc.h> 中声明.你需要#include那个标题。

关于c - 函数错误的隐式声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38786633/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com