teddysun / across

Across the Great Wall we can reach every corner in the world
https://teddysun.com
Apache License 2.0
4.97k stars 2.22k forks source link

在Ubuntu18.04下编译unixbench报错 #46

Closed hsl727261250 closed 4 years ago

hsl727261250 commented 4 years ago

` gcc -o ./pgms/arithoh -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Darithoh ./src/arith.c ./src/arith.c:32:10: fatal error: stdio.h: No such file or directory

include

      ^~~~~~~~~

compilation terminated. Makefile:185: recipe for target 'pgms/arithoh' failed ` 16.04下编译没问题, 有可能是gcc版本的问题, 暂时提个issue, 等我有空检查一下原因.

luckycat0426 commented 2 years ago

bash sudo apt-get install libc6-dev 安装libc6即可解决