asm/page.h No such a file or dictionary | error: 'PAGE_MASK' undeclared
来源:互联网 发布:那谁剧场版知乎 编辑:程序博客网 时间:2024/05/22 16:00
1、查找:
通过查找在 /usr/include/sys/user.h 中找到了PAGE_MASK的定义
2、解决:
把 #include <asm/page.h> 改成#include <sys/user.h>编译估计就可以通过了。
3、总结:
这很可能是系统版本差异的原因,新的系统版本是在后面这个路径下定义的。这个方法已经验证有效。
4、还有这些方法我没有试过,我不建议这么用,也许可以,分享给大家。
将#include “asm/page.h”
改为
#include <asm/page.h> //这个我试过不行的
或者自己定义一个:(参照/usr/include/asm/page.h)
#define PAGE_SHIFT 12
#define PAGE_MASK (~((1 << PAGE_SHIFT) - 1))
- asm/page.h No such a file or dictionary | error: 'PAGE_MASK' undeclared
- 编译错XF86DGA.c:21:40: fatal error: asm/page.h: No such file or directory
- asm/page.h 的文件内容 asm/page.h: No such file or directory
- Error :asm/arch/davinci_vdce.h : no such file or directory
- 编译servfox时出现error: asm/bitsperlong.h:No such file or directory错误
- error: asm/arch/regs-gpio.h: No such file or directory 此类问题的解决办法
- error: asm/arch/regs-gpio.h: No such file or directory 此类问题的解决办法
- error: asm/arch/regs-gpio.h: No such file or directory 此类问题的解决办法
- 编译错误error:asm/bitsperlong.h: No such file or directory
- BCGCBProInc.h : No such s file or dictionary.
- “asm/semaphore.h: No such file or directory”
- “asm/semaphore.h: No such file or directory”
- “asm/semaphore.h: No such file or directory”
- asm/semaphore.h: No such file or directory
- asm/arch/regs-lcd.h: No such file or directory
- asm/arch/regs-gpio.h: No such file or directory; asm/hardware.h : No such file or directory
- busybox asm/page.h: No such find.
- error: ao/ao.h: No such file or directory
- 六. C语言预处理器LCC-CPP之include.c代码分析
- SQL Server分页查询的两种方法
- Redhat Linux通过LVM动态扩展系统分区
- 微软公有云获得入华牌照
- hdu1754 I Hate It+线段树
- asm/page.h No such a file or dictionary | error: 'PAGE_MASK' undeclared
- 英特尔48核芯片:手机变身超级电脑
- Android中帧动画在Activity启动时自动运行的几种方式
- mips 寄存器理解
- 程序员应该怎样保持优秀
- 拉格朗日乘数法
- MIPS 通用寄存器
- Vim 配置详解
- Oracle中dual表