Possible Duplicate:
Make error: missing separator
Have this code in makefile:
PROG = semsearch
all: $(PROG)
%: %.c
gcc -o $@ $< -lpthread
clean:
rm $(PROG)
and the error
missing separator. stop.
Can someone help me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to precede the lines starting with
gccandrmwith a hard tab. Commands in make rules are required to start with a tab (unless they follow a semicolon on the same line).The result should look like this:
Note that some editors may be configured to insert a sequence of spaces instead of a hard tab. If there are spaces at the start of these lines you’ll also see the “missing separator” error. If you do have problems inserting hard tabs, use the semicolon way: