0
當試圖運行make命令時,出現錯誤: makefile:22:***缺少分隔符。停止。 第22行將是g ++ driver.o前面的行ground.o ... 我知道我需要使用製表符而不是空格,但它仍然不起作用。 有什麼想法?這是我的代碼:Makefile - 缺少分隔符。停止
LFLAGS = -lglut -lGLU -lGL
a.out: driver.o ground.o game.o uiInteract.o uiDraw.o point.o lander.o velocity.o
g++ driver.o ground.o game.o uiInteract.o uiDraw.o point.o lander.o velocity.o $(LFLAGS)
tar -j -cf moonLander.tar makefile *.h *.cpp
uiDraw.o: uiDraw.cpp uiDraw.h
g++ -c uiDraw.cpp
uiInteract.o: uiInteract.cpp uiInteract.h
g++ -c uiInteract.cpp
point.o: point.cpp point.h
g++ -c point.cpp
ground.o: ground.cpp ground.h
g++ -c ground.cpp
game.o: game.h game.cpp uiDraw.h uiInteract.h point.h ground.h
g++ -c game.cpp
driver.o: driver.cpp game.h uiInteract.h
g++ -c driver.cpp
lander.o: lander.cpp lander.h point.h velocity.h uiDraw.h
g++ -c: lander.cpp
velocity.o: velocity.cpp velocity.h
g++ -c: velocity.cpp
clean:
rm a.out *.o *.tar
我不知道如何將線程標記爲重複,所以即時只是要評論這裏http://stackoverflow.com/questions/18936337/makefile1-missing-separator-stop –
非常感謝你,我修好了,這是一個文本編輯器的問題。 –
np:).......... –