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:).......... –