makefile error - Raspberry Pi Forums
all: raspberrycar
raspberrycar: main.o server.o control.o
g++ main.o server.o control.o -o raspberrycar -std=c++0x -pthread -lbcm2835
main.o: main.cpp
g++ -std=c++0x -c main.cpp
server.o: server.cpp
g++ -std=c++0x -c server.cpp
control.o: control.cpp
g++ -std=c++0x -c control.cpp
clean:
rm -rf *.o raspberrycar
i've written code in makefile, when write command : make
shows following error: makefile:3: *** missing separator. stop.
how can fix this?
raspberrycar: main.o server.o control.o
g++ main.o server.o control.o -o raspberrycar -std=c++0x -pthread -lbcm2835
main.o: main.cpp
g++ -std=c++0x -c main.cpp
server.o: server.cpp
g++ -std=c++0x -c server.cpp
control.o: control.cpp
g++ -std=c++0x -c control.cpp
clean:
rm -rf *.o raspberrycar
i've written code in makefile, when write command : make
shows following error: makefile:3: *** missing separator. stop.
how can fix this?
put in code tags see layout : have spaces or tabs before command lines ? make fussy , accepts tab characters (unless specify else).
petero
code: select all
all: raspberrycar raspberrycar: main.o server.o control.o g++ main.o server.o control.o -o raspberrycar -std=c++0x -pthread -lbcm2835 main.o: main.cpp g++ -std=c++0x -c main.cpp server.o: server.cpp g++ -std=c++0x -c server.cpp control.o: control.cpp g++ -std=c++0x -c control.cpp clean: rm -rf *.o raspberrycar
petero
raspberrypi
Comments
Post a Comment