Makefile: 4: *** missing delimiter

Possible duplicate:
Error: missing delimiter

This stupid mistake annoys me so much ...

This is a file ...

I spent an hour trying to figure out what was wrong with him .... I am a VIM user. Can someone please indicate why? I use tab!

Thanks.

all: hello hello: hello_world.c gcc -Wall -o hello.exe hello_world.c 
+4
source share
3 answers

The line with the gcc command should start with a tab, and it looks like you are using advanced tabs (spaces instead of tabs). Try using set noexpandtab in vim .

+11
source

This is what you have:

 all: hello hello: hello_world.c gcc -Wall -o hello.exe hello_world.c 

The space before the gcc command should be Tab , not one space, not two spaces, not three spaces, etc., but one and exactly one tab

+3
source

No no!

I uploaded your file - there are four places, not a tab. You can run :set list in vim to see it yourself.

Remove the spaces and place the tab in its place (press ctrl-v ctrl-i).

In the future you can add

  # vim:noet 

to file. And your default setting will be overridden by setting the set noexpandtab file.

+1
source

All Articles