使用嵌入式 C 项目。有用于微控制器的库、包含文件等。我不需要将 GCC 用于主机和操作系统(Linux Mint 64 位)。按照惯例...
但现在我正在尝试从 Github 编译mspdebug项目 - 当然是使用 GCC。我在make一开始就出错了:
mspdebug$ make
cc -DUSE_READLINE -O1 -Wall -Wno-char-subscripts -ggdb -I. -Isimio -Iformats -Itransport -Idrivers -Iutil -Iui -DLIB_DIR=\"/usr/local/lib/\" -o util/btree.o -c util/btree.c
util/btree.c:19:20: fatal error: assert.h: No such file or directory
#include <assert.h>
^
compilation terminated.
我在所有可能的路径中搜索包含(我通过 gcc -v 命令获得了它们的列表) - 没有 assert.h 文件,以及 stdio.h 等等。除了虚拟盒子目录,只有一个地方(GCC 不搜索包含的地方):/usr/lib/syslinux/com32/include
AFAIK,所有标准库和包含都随 GCC 一起安装。所以我尝试重新安装 GCC (4.8.4) - 没有任何变化。
为 GCC 提供所需的所有标准环境的正常方法是什么?