在raspberrypi中给出:缺少分隔符错误

时间:2019-04-12 08:22:32

标签: c makefile raspberry-pi3

当我尝试在树莓派上运行代码时,我一直收到此错误,我不知道是什么原因造成的:

CC = gcc
CFLAGS = -Wall -O0 -std=gnu99 -I/usr/local/include -g
LDFLAGS = -L/usr/local/lib -pthread -lm -lwiringPi
FUSEFLAGS = `pkg-config fuse --cflags --libs`

SOURCES = $(wildcard *.c)
PROGS = $(patsubst %.c,%,$(SOURCES))
BINS = $(SOURCES:.c=)

all: $(PROGS)

%: %.c
        $(CC) $<  $(CFLAGS) $(LDFLAGS) -o $@ $(FUSEFLAGS)

clean:
        $(RM) *.o *.a $(BINS)

这会产生以下错误:

Makefile:14: *** missing separator.  Stop.

当我使用make运行代码时。在不确定是什么原因导致突然发生这种情况之前,我的化妆师就已经开始工作了!

1 个答案:

答案 0 :(得分:2)

declare var require:any;
var fa = require('convert-layout/fa.js');
let correct = fa.fromEn('sghl');  

我写过CC = gcc CFLAGS = -Wall -O0 -std=gnu99 -I/usr/local/include -g LDFLAGS = -L/usr/local/lib -pthread -lm -lwiringPi FUSEFLAGS = `pkg-config fuse --cflags --libs` SOURCES = $(wildcard *.c) PROGS = $(patsubst %.c,%,$(SOURCES)) BINS = $(SOURCES:.c=) all: $(PROGS) %: %.c <___T___A___B___>$(CC) $< $(CFLAGS) $(LDFLAGS) -o $@ $(FUSEFLAGS) clean: <___T___A___B___>$(RM) *.o *.a $(BINS) 的地方应该有1个制表符,不能有空格!