我正在尝试在最新版本的 ubuntu 上编译一个 C 程序,以便稍后将编译后的程序放在另一台机器上。但是,当我使用 gcc prog.c -o prog 编译时,出现错误:“致命错误:asm/page.h:没有这样的文件或目录” 以下是标题:
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <limits.h>
#include <signal.h>
#include <unistd.h>
#include <sys/uio.h>
#include <sys/mman.h>
#include <asm/page.h>
#include <asm/unistd.h>
我在 #include 收到错误。它说致命错误:asm/page.h:没有这样的文件或目录。就像我说的,我只是想编译它。有没有办法让我得到丢失的标题或其他东西?谢谢。