delorie.com is funded by banner ads.
  www.delorie.com/djgpp/v2faq/faq187.html   search  

| Previous | Next | Up | Top |

22.16 Make says "missing separator"

Q: When I invoke Make, it refuses to do anything and prints a cryptic message: "makefile:10: *** missing separator. Stop." Now what kind of excuse is that?


A: Unlike most other DOS Make programs which accept any whitespace character at the beginning of a command in a rule, GNU Make insists that every such line begins with a TAB. (Most other Unix Make programs also require TABs, and the Posix standard requires it as well.) Make sure that the line whose number is printed in the error message (in this case, line 10) begins with a TAB.

There are editors that replace TABs with spaces, so even a Makefile that used to work can become unworkable if you edit them with such an editor.

Another, more rare, cause of the above error message is if you use static pattern rules (with the % character) incorrectly. Read the documentation that comes with Make carefully and try to find the error.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright ⌐ 1998   by Eli Zaretskii     Updated Nov 1998  

Powered by Apache!

You can help support this site by visiting the advertisers that sponsor it! (only once each, though)