cs50edx

make: *** No rule to make target 'population'. Stop. cs50


make: *** No rule to make target 'population'. Stop. No rule to make target 'population'. Stop.

I'm trying to compile cs50's population problem set-1 population. it doesn't works , showing this error message on terminal "make: *** No rule to make target 'population'. Stop.", later on I tried other file to compile it says also same ..

thanks in advance


Solution

  • The terminal shows that make is being run from the home directory (`~/).

    The file tree shows that population.c lives in ~/pset1/hello directory.

    cd to the directory where the source code exists and then execute make.