fltk在Ubuntu上出错 bits / statx-generic.h:没有这样的文件或目录

问题描述

我正在尝试安装fltk库:

./configure --enable-shared --enable-threads --enable-debug
make 

make命令出现以下错误

=== making src ===
Compiling Fl.cxx...
In file included from /usr/include/x86_64-linux-gnu/sys/stat.h:446,from ../FL/fl_utf8.h:62,from ../FL/Fl.H:32,from Fl.cxx:64:
/usr/lib/gcc/x86_64-linux-gnu/9/include-fixed/bits/statx.h:38:25: error: missing binary operator before token "("
   38 | #if __glibc_has_include ("__linux__/stat.h")
      |                         ^
/usr/lib/gcc/x86_64-linux-gnu/9/include-fixed/bits/statx.h:46:10: Fatal error: bits/statx-generic.h: File o directory non esistente
   46 | #include <bits/statx-generic.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../makeinclude:162: Fl.o] Error 1
make: *** [Makefile:24: all] Error 1

我正在使用Ubuntu 19.04和gcc 9.2.1。 我是一个初学者,任何帮助将不胜感激!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)