[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make error



Hi,

$ make: Fatal error in reader: makefile, line 20: Unexpected end of line seen

If you get this error message, most probably you have used a space character
instead of the leading tab while defining the command (action) as part
of the target rule. Typically it should look like this:

foo.o : foo.c
	cc $(FLAGS) -c foo.c

Note the leading tab on the 2nd line!

One more tip: on SUN stations you can check the on-line documents in
the Sun's Answer Book. This is extremely well-written, and a good place
to start if you've got any weird error messages. Just type "answerbook"
at the UNIX prompt.

Hope this helps!

Cheers,

-Thanh