Questions tagged [make]
The make program, a GNU utility to maintain groups of programs.
54
questions
0
votes
1
answer
49
views
make: *** No rule to make target 'hello'. Stop
I recently started the cs50 2023 course, and from the beginning I faced problems
When I type "hello world" code, I get this error
make: *** No rule to make target 'hello'. Stop
What is the ...
0
votes
2
answers
3k
views
bash: make: command not found
I'm using VS Code online version provided by CS50, if I'm not wrong.
When I try to compile my code before running it via "make hello" I get this error: "bash: make: command not found.&...
0
votes
2
answers
695
views
How to write the make command in C from scratch
I started working with C on ubuntu and every time I want the code compile I have to type thee gcc command.
gcc hello.c -o hello -lm
I tried automating this with make on ~./bashrc, but it is not ...
0
votes
1
answer
255
views
make mario won't work but i'm in the correct directory
make mario won't work but I'm in the correct directory. I haven't even started writing the solution properly as I'm stumped on getting it to compile. Any suggestion? I tried restarting the IDE and ...
0
votes
2
answers
207
views
Having trouble with make command
when I try to make population I get this response.
make*** no rule to make 'population'. stop.
The other runs fine it makes and runs the code
0
votes
1
answer
180
views
I don't understand the error message I'm getting
I don't understand the error message, and i've been trying to modify the code to fix the error but it still appears.
// Blur image
void blur(int height, int width, RGBTRIPLE image[height][width])
{
...
0
votes
1
answer
194
views
*** No rule to make target 'runoff'. Stop. Even though I'm in the correct directory
I keep getting the No rule to make target error on the runoff problem even when I'm in the correct directory as you can see in the picture attached.
Note: I have just completed the vote function for ...
1
vote
1
answer
71
views
CS50.h library in ubuntu
every time i create program i have to write "clang prog.c -o prog lcs50"
link with cs50
but when I try "make prog"
it prints following error:
/usr/bin/ld: /tmp/cc8noHLN.o: in ...
1
vote
1
answer
263
views
Pset 3 Plurality Help
I was trying to compile my code for plurality but it says:
plurality.c:82:1: error: control may reach end of non-void function [-Werror,-Wreturn-type]
}
^
1 error generated.
<builtin>: recipe ...
0
votes
1
answer
45
views
There is unknown text after typing "make" to compile code
after i type make filename i get the following text. I did not get the text the first time i used "make". What does the text mean?
clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-...
1
vote
0
answers
48
views
Week2 Help50 Make Buggy0 doesn't work
I executed help50 just like in the lecture(see photo) but it doesn't recognise the file although it is written right:
0
votes
0
answers
98
views
PSET Make Readability
i am having some problems trying to execute make readability. Can you help me? Thanks in advance!
0
votes
1
answer
384
views
Pset2 "make readability" does not work
I have done all of the following instructions for Pset2 readability but am still unable to execute "make readability":
"Execute cd to ensure that you’re in ~/ (i.e., your home directory)"
"Execute ...
0
votes
1
answer
32
views
"make" showing error that i've fixed but keeps referencing it
I fixed the error shown in the terminal for line 24, but when I compile my code it keeps popping up again [even though the line it's referencing does not even exist anymore].
dictionary.c:24:15: ...
0
votes
1
answer
162
views
CS50 IDE - 'make' command seems to force recompiling even without code change
edit: 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'
Love the course!
Anyway, this is ...
1
vote
1
answer
2k
views
*** No rule to make target `hello'. Stop
I keep getting the error "*** No rule to make target `hello'. Stop." when I try to make hello; I searched for this error and tried cd pset1 for example, but it it still shows the same error; any ...
1
vote
2
answers
2k
views
hello.c wont compile - Nothing to be done
I saved the file as hello.c, and I think I'm inside /workspace/pset1/hello
However, I get the message "Nothing to be done for hello c.
Any idea what I'm doing wrong?
Thanks
0
votes
1
answer
353
views
pset5: Unable to compile the speller code
Unable to compile my Pset5 program.
please help I have no clue why am I getting such a response while running make
0
votes
2
answers
4k
views
"make: *** No rule to make target `hello'. Stop." for pset1
I have seen all answers mentioned earlier but I seem to still not navigate out of the problem.
More so because yesterday when I complied hello.c and water.c they worked fine. I even submitted the ...
0
votes
1
answer
73
views
pset3 making helpers.c gives 50 lines of errors (doesn't compile)
I successfully finished my helpers.c file fixing whatever mistake was pointed out by "make" but now running "make helpers" gives approximately 50 lines of error from the debug log of the gnu compiler.
...
0
votes
1
answer
127
views
I cant make hello file
I did run update 50. Any suggestion?
0
votes
1
answer
23
views
What is `all:` command?
I encountered a problem while using all command (or variable if : is used to create one) during problem set 3.
bash: all:: command not found
The context is building both generate and find (two files ...
0
votes
1
answer
202
views
Having problems when i run hello.c
i am a newbie in programming and i was following up a lecture by prof.Malan and ended of with an error when opening a new file and naming it hello.c( cs50ide offline)
the problem is it ends showing ...
0
votes
0
answers
58
views
No rule to make target, is it b/c username is gone?
In the terminal, it says:
~/workspace $
In other words, it's missing my username in the beginning. Is this causing the problem when I try to compile? Or what could the problem be?
(FYI: I do locate ...
0
votes
0
answers
69
views
How do I compile pset6?
I noticed that I don't have any make file for pset6. Do I have to make one myself, or am I missing something?
0
votes
1
answer
73
views
CS50; Problem Set 3 - can't make/execute "window.c" - please help!
Could you please help me with Problem Set 3.
Paragraph "Breaking Out".
After unzip src4m.zip I see: Makefile button.c click.c label.c pointers.c sigma-1.c text.c bounce.c checkbox.c ...
0
votes
1
answer
27
views
'make <source code name>' - does this command always looks for a source code named hello.c ?.c?
In week 1 lecture, Prof Malan explained that the make command in the terminal window will, by default, look for the source code file named hello.c. But will it look for hello.c even if i write, say, ...
0
votes
0
answers
174
views
How to link math.h using " make "? [duplicate]
In greedy , for using "round" function , I need the compiler to automatically include math.h every time ( without linking it every time )using make but not with gcc . Is it possible ? if so , How ?
...
10
votes
4
answers
80k
views
Error: "make: *** No rule to make target `mario'. Stop."
I keep receiving and the error message " *** no rule to make target 'mario' stop" when I try to make mario. Does anyone have any advice? I already typed in pwd and I'm in the Jharvard desktop. Any one?...
0
votes
1
answer
129
views
pset1 greedy.c won't compile using "make" but will using "clang" [duplicate]
When I input make greedy.c into the terminal I get:
make: Nothing to be done for 'greedy.c'
However, when I compile using clang greedy.c -Wall -cs50 -lm, it compile into an executable 'a.out'.
Any ...
0
votes
1
answer
249
views
No rule to make target 'hello-1' [duplicate]
When I try the command
make hello-1
The error message:
make: *** No rule to make target `hello-1'. Stop.
Comes up
When I list my directory I see
hello hello.c hello.txt
Any help would be great
1
vote
1
answer
507
views
make hello gets error
Week 1 and I was following along with Lecture Continued. When I tried to compile I got this error...
1 error generated.
make: *** [hello] Error 1
I have never worked with Linux or command lines ...
1
vote
1
answer
161
views
Breakout (with no changes) won't compile
I always get the following messsage when I try to compile breakout in PSET3.
jharvard@appliance (~/Dropbox/CS50/pset3/pset3/breakout): make breakout
clang -ggdb3 -O0 -std=c99 -Wall -Werror -Wno-...
0
votes
1
answer
329
views
automatically link cs50 when using make? - not using appliance
On Ubuntu 14.10, how to automatically link cs50.h when using make, without needing to link it manually like with GCC.
I need to make cs50 link automatically when I call make on my c file.
When I use ...
0
votes
1
answer
277
views
pset3 command line error make/clang
clang testing.c -lcs50 -o testing
/tmp/testing-6c5209.o: In function `main':
testing.c:(.text+0x3f): undefined reference to `sort'
clang: error: linker command failed with exit code 1 (use -v to see ...
1
vote
1
answer
1k
views
How do I resolve a `for loop initial declarations` error while compiling?
I just copied copy.c to whodunit.c.
Then I saved and tried to compile the program by running make whodunit. This resulted in the following error.
whodunit.c: 73:5 error: for loop initial ...
1
vote
0
answers
432
views
/usr/bin/ld: cannot find -lcs50
I'm running the CS50 tools on my Linux Mint 17.1 KDE partition on my Toshiba Satellite E55t-A5320 laptop. I set everything up using this link:
How to Install the Tools for the Course on Ubuntu
...
1
vote
1
answer
974
views
How to configure make to execute a specific compilation command?
When executing
make prog
in the same directory as my source code file named prog.c, I see this command gets executed
gcc prog.c -o prog
which leads to causing various compile-time errors from ...
0
votes
2
answers
800
views
I get the error message "undefined reference to 'GetInt'" but I already put #include <cs50.h> at the beginning of my program
I am making the mario.c program but when I try to compile it I run into the error stated in the title. I checked the code step by step and even tried making the adder program in the walkthroughs but I ...
0
votes
1
answer
650
views
"make" not working ("undefined reference to GetString")
I'm testing out a basic program called getname that prompts the user for their name to store it in a string variable. However make doesn't seem to work.
This is make's output:
jharvard@ubuntu:~$ ...
0
votes
3
answers
950
views
Problem with cs50.h header file!
In pset1 for the mario program,when I compile my code including cs50.h header file in my code it throws up the following error
However,when I don't include the cs50.h file and use scanf function ...
0
votes
1
answer
207
views
Unable to 'make hello-2'
Am following video from lecture Week1 Monday (45min), and using CS50 Library installed on OSX Mavericks (the appliance isn't an option as it's a work machine), but get this response to make hello-2:
...
2
votes
2
answers
356
views
How does "make" know how to compile if no "Makefile" is specified?
For the earlier psets, no makefile is present yet make runs without problems. How?
3
votes
2
answers
552
views
Compile using make without the appliance in Kubuntu
I want to change the default options of make to be like the appliance one. I have installed clang and the cs50.h library but right now I compile the programs using clang hello_world.c -lcs50 -o ...
2
votes
1
answer
577
views
Memory leaks found in system programs
I used Valgrind to check for memory leaks in several system programs, including ls, gedit and Make. I discovered that these programs do have memory leaks. Is this a serious problem whenever I use ...
3
votes
1
answer
5k
views
Cannot use make: "Nothing to be done for whodunit.c"
For pset5 I did as suggested and copied copy.c to a new file named whodunit.c. I've left everything the same but hopefully changed the red pixel values. When I go to compile using make I get this ...
3
votes
2
answers
1k
views
How to make my makefile match the Appliance
I was trying to do a lot of the work on my pc instead of the appliance and I would really like to use the make functionality.
Currently when I run make it doesn't have the correct flags and I was ...
0
votes
3
answers
296
views
Nothing to be done for conditions
I'm getting this response on my terminal even after configuring my dropbox:
nothing to be done for conditions
when I type make conditions, is there anything that I'm missing? When I type ./...
0
votes
1
answer
604
views
Nothing to be done for `adder'
When I try to compile the adder program from the week1 walkthrough, I get an error saying
make: Nothing to be done for 'adder'"
I have checked that I am in the right directory, and have included &...
0
votes
0
answers
1k
views
How do I link the Stanford Portable Library (SPL) to a program?
I was on the walkthroughs of week 5 and I wanted to do the programs mentioned for practice with GButton, GCheckbox and so on. On the header files there is the #include gevents.h gobjects.h and so on, ...