I have written the load function of speller/pset5 and the problem that I encounter is that dictionary.c doesn't compile though I get no errors in red rather I get some messages and a file dictionary.o is made in my speller directory. Here's the message I get on running make dictionary.Any suggestions will be appreciated!

1 Answer 1


Classic error. You tried to make dictionary. The problem is that the code in dictionary.c is a subset of the code needed to make speller. You can't compile dictionary.c into a runnable program. For starters, it has no main().

Try creating speller instead of dictionary. It'll work a lot better. A review of the class material on building an executable from multiple source code files is also in order.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

  • that would be for a new question.
    – Cliff B
    Commented Jul 2, 2017 at 11:43
  • Yeah I have put up a new question for this as well .
    – sk.76
    Commented Jul 2, 2017 at 11:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .