没有包含搜索limits.h的路径

时间:2017-06-04 19:31:19

标签: linux ubuntu makefile build

我想构建一个库,但在'make'

之后显示以下错误

如何解决错误?

ekeroc@ekeroc-desktop:~/gattlib/build$ make
[  1%] Building C object dbus/CMakeFiles/gattlib.dir/gattlib.c.o
In file included from /usr/lib/gcc/arm-linux-gnueabihf/5/include-fixed/syslimits.h:7:0,
                 from /usr/lib/gcc/arm-linux-gnueabihf/5/include-fixed/limits.h:34,
                 from /usr/lib/arm-linux-gnueabihf/glib-2.0/include/glibconfig.h:11,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /home/ekeroc/gattlib/dbus/gattlib.c:24:
/usr/lib/gcc/arm-linux-gnueabihf/5/include-fixed/limits.h:168:61: error: no include path in which to search for limits.h
In file included from /usr/include/glib-2.0/glib/galloca.h:32:0,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /home/ekeroc/gattlib/dbus/gattlib.c:24:
/usr/include/glib-2.0/glib/gtypes.h:35:18: fatal error: time.h: No such file or directory
compilation terminated.
dbus/CMakeFiles/gattlib.dir/build.make:82: recipe for target 'dbus/CMakeFiles/gattlib.dir/gattlib.c.o' failed
make[2]: *** [dbus/CMakeFiles/gattlib.dir/gattlib.c.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'dbus/CMakeFiles/gattlib.dir/all' failed
make[1]: *** [dbus/CMakeFiles/gattlib.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
ekeroc@ekeroc-desktop:~/gattlib/build$ ^C

0 个答案:

没有答案