make 的错误消息:缺少分隔符
可能的重复:
出现错误:缺少分隔符
我已经制作了很多 makefile,但今天我制作了一个简单的它不起作用,因为它缺少分隔符。
CC = g++
CFLAGS = -O2 -Wall
LDFLAGS =
MODULOS = externa libreria ann
PARTES = metodos backprop BackApp
EXECUTABLE = atras
.PHONY: clean install uninstall
all: externa libreria ann
$(CC) $(CFLAGS) –c $(PARTES).o –o $(EXECUTABLE)
external: metodos.cpp metodos.h
$(CC) –c $(CFLAGS) metodos.cpp
libreria: backprop.cpp backprop.h
$(CC) $(CFLAGS) –c backprop.cpp
ann:
$(CC) $(CFLAGS) –c BackApp.cpp
clean:
rm –f $(PARTES).o
install:
cp juego /usr/games/juego
uninstall:
sudo rm /usr/games/juego
该错误涉及 external 之后的下一行,即第 14 行。错误显示:
*** missing separator
但我不知道如何解决它。
Possible Duplicate:
Make error: missing separator
I've made many makefiles, but today I was making an easy one and it doesn't work because it is missing a separator.
CC = g++
CFLAGS = -O2 -Wall
LDFLAGS =
MODULOS = externa libreria ann
PARTES = metodos backprop BackApp
EXECUTABLE = atras
.PHONY: clean install uninstall
all: externa libreria ann
$(CC) $(CFLAGS) –c $(PARTES).o –o $(EXECUTABLE)
external: metodos.cpp metodos.h
$(CC) –c $(CFLAGS) metodos.cpp
libreria: backprop.cpp backprop.h
$(CC) $(CFLAGS) –c backprop.cpp
ann:
$(CC) $(CFLAGS) –c BackApp.cpp
clean:
rm –f $(PARTES).o
install:
cp juego /usr/games/juego
uninstall:
sudo rm /usr/games/juego
The error concerns the next line after external, line 14. The error says:
*** missing separator
but I don't know how to solve it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该行上的缩进可能使用空格而不是制表符。
You probably have spaces instead of tabs for indentation on that line.