2

I have the simplest of makefiles:

threads: gcc threads.c -o threads 

but I get the error:

'make: Fatal error: Don't know how to make target'

Any ideas what I am doing wrong? It's probably something simple - I made the makefile in emacs on the system which is trying to run it (Unix)

1
  • 2
    How do you invoke make? Just 'make threads'? Commented Jan 29, 2010 at 17:55

2 Answers 2

4

Do you have spaces instead of a tab on the second line there? Most common basic make mistake, I'd say.

Sign up to request clarification or add additional context in comments.

2 Comments

It is a common error, but you should get a different error message.
Ah, you're right - I was thinking it prevented the rule from getting defined. My bad. But it got accepted... maybe it was somehow right?
0

Edit:

Did you mistype the make as you got the error 'ake: Fatal error....', something is wrong there.

Does make threads work? You need to show us the make file for us SO'ers to see what is wrong...Perhaps the make file is not in the right way, Make is extremely nitpicky on using spaces and tabs so double check on that.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.