Hot answers tagged

10 votes

Error: "make: *** No rule to make target `mario'. Stop."

I thought I was in the correct directory, but I wasn't. (I’m a super newbie.) Execute to show what workspace you’re in “print working directory”: pwd Execute to "list": ls Execute to “change ...
The_NELQ_Coder's user avatar
3 votes

No Rule to Make Target

Try right clicking on folder name in explorer and choose integrated terminal and then execute ur commands...
Priyamvada Sharma's user avatar
3 votes

No Rule to Make Target

Other way which helped me is typing: cd (you will moved into default directory). Then type ls and hope you'll see your file there.
Egor Fedorets's user avatar
2 votes

Error: "make: *** No rule to make target `mario'. Stop."

I had the same error and turns out I was in the root directory. You need to be in the mario-more directory to execute the make mario command. Just check if you $ sign has mario-more/ prefix. If not ...
Sanket Pagadpalliwar's user avatar
2 votes

No Rule to Make Target

If any of these solutions above have not solved your problems, here's another solution: the word after command "make" should be the same as the file name. example: File name:hello.c Command should be ...
Poussy's user avatar
  • 21
1 vote

"make" not working ("undefined reference to GetString")

I can assume that you have broken or not set CFLAGS and LDLIBS environment variables. In the same folder try to create a file called makefile and place the next lines inside it: CC=clang CFLAGS=-...
HydraOrc's user avatar
  • 111
1 vote
Accepted

make mario won't work but i'm in the correct directory

Your mario.c file is not in your mario directory, but in your pset1 directory. Type mv ../mario.c ../mario into the terminal (or drag and drop the file into the mario folder, if the IDE allows it) and ...
Robert S. Pratt's user avatar
1 vote

Having trouble with make command

Your code has multiple errors. First, you declare two int variables named s. Second, you declare an int in your do-while loop without giving it a variable name. Second, you are using printf syntax in ...
Robert S. Pratt's user avatar
1 vote

CS50.h library in ubuntu

Are you using CS50 ide ? #include <cs50.h> This library will only work if you use CS50 ide for compiling your code, otherwise it will not compile
Shehroz Ali's user avatar
1 vote
Accepted

Pset2 "make readability" does not work

I know you believe that you're doing everything exactly right, but I'm still betting you're not in the right directory. From where you are trying to execute make readability, type in the command ls -...
Cliff B's user avatar
  • 68.7k
1 vote

CS50 IDE - 'make' command seems to force recompiling even without code change

I seem to have found the solution to my problem. the option can be found in ide50.sh located in /etc/profile.d/ . works now after removing '-B' from 'make -B'
biet1234's user avatar
1 vote
Accepted

*** No rule to make target `hello'. Stop

Looking at the screen capture, I would say that hello doesn't compile because you are not in the directory that contains hello.c. It would appear that you are trying to execute the make hello command ...
Cliff B's user avatar
  • 68.7k
1 vote

hello.c wont compile - Nothing to be done

The command is make hello, not make hello.c. If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)
Cliff B's user avatar
  • 68.7k
1 vote

pset5: Unable to compile the speller code

make without a target requires a makefile. If it finds one, it will build the first target in that file. For some reason, you don't seem to have a Makefile in that directory. This means that make won'...
Blauelf's user avatar
  • 20.9k
1 vote

"make: *** No rule to make target `hello'. Stop." for pset1

You are currently in the general directory called workspace. However, mario.c, water.c, and hello.c all exist in the pset1 directory. When you type make mario, make hello, and make water into the ...
SuperNovaCoder's user avatar
1 vote
Accepted

I cant make hello file

The filename isn't hello.c so make hello won't work. The compiler doesn't read minds and can't guess that "oh, he meant that file!" ;-) First, you need to be in the same directory. Next, you either ...
Cliff B's user avatar
  • 68.7k
1 vote
Accepted

Having problems when i run hello.c

you are not in the correct directory, you must move to .c9 doing: cd .c9 your terminal should look similar to ~/workspace/.c9/ $ then you can do: make hello and then run the program with ./...
MARS's user avatar
  • 5,169

Only top scored, non community-wiki answers of a minimum length are eligible