我想在最新版本的ubuntu上编译一个C程序,目的是在稍后将编译好的程序放到另一台机器上。然而,当我用gcc -o prog.c中前卫编译,我得到一个错误:“致命错误:ASM/page.h:没有这样的文件或目录”这里有头:无法在ubuntu上编译C代码。 (#include errors)
#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:没有这样的文件或目录。就像我说的,我只是想编译它。有没有办法让我找到丢失的标题或什么?谢谢。
你的程序打算做什么?它为什么包括所有上面的混乱?显示更多的源代码,不仅仅是'#include'指令! –