小编mar*_*usw的帖子

"#include <asm/io.h>"导致"错误:asm/io.h:没有这样的文件或目录"

我正在使用gentoo并尝试编译程序来控制并行端口上的位.这条线靠近它的顶部:

#include <asm/io.h>
Run Code Online (Sandbox Code Playgroud)

当我尝试在其上使用gcc时,它会产生以下输出:

port.c:4:20:错误:asm/io.h:没有这样的文件或目录

"找到asm/io.h"yeilds(除其他外):

/usr/src/linux-2.6.32-gentoo/arch/x86/include/asm/io.h

所以我有头文件,但它找不到它?为什么这不起作用?

c gentoo hardware-interface parallel-port

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

c ×1

gentoo ×1

hardware-interface ×1

parallel-port ×1