Skip to content

July 19, 2015

Error: Makefile:: *** missing separator. Stop.

by noise

If you get the following error when trying to compile an app using a Makefile:

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

Then the problem is you need two tabs in front of $(CC) line (see the following example):

#CC=clang++ -g
CC=clang++ -g -O3 -mavx
CFLAGS=-pipe -Wall -O
LDFLAGS=-lSDL2main -lSDL2 -I/opt/local/include -L/opt/local/lib
all: a.o
a.o: main.cpp
	$(CC) $(LDFLAGS) main.cpp -fPIC -o test_app

Note that you will need two tabs, not one, not spaces. On some OSes it might work with one tab.

Read more from Misc Errors

Leave a Reply


Note: HTML is allowed. Your email address will never be published.

Subscribe to comments