在deepin下做csapp的第一個lab,datalab, 根據那個說明,然后我輸入命令make btest,然后就有一堆錯誤
make btest
gcc -O -Wall -m32 -lm -o btest bits.c btest.c decl.c tests.c
In file included from /usr/include/stdio.h:27:0,
from btest.c:16:
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: 沒有那個檔案或目錄
# include <sys/cdefs.h>
^
compilation terminated.
In file included from /usr/include/stdio.h:27:0,
from decl.c:1:
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: 沒有那個檔案或目錄
# include <sys/cdefs.h>
^
compilation terminated.
In file included from /usr/include/limits.h:25:0,
from /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed/limits.h:168,
from /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed/syslimits.h:7,
from /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed/limits.h:34,
from tests.c:3:
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: 沒有那個檔案或目錄
# include <sys/cdefs.h>
^
compilation terminated.
Makefile:11: recipe for target 'btest' failed
make: *** [btest] Error 1
第一個lab的說明是這樣的
To compile and run the btest program, type:
unix> make btest
unix> ./btest [optional cmd line args]
You will need to recompile btest each time you change your bits.c
program. When moving from one platform to another, you will want to
get rid of the old version of btest and generate a new one. Use the
commands:
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/116223.html
標籤:專題技術討論區
上一篇:雙系統安裝 轉載
