Questions tagged [make]

The make program, a GNU utility to maintain groups of programs.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Fedora 35 and JetBrains Clion - I can't use any cs50.h function

Example: #include <stdio.h> #include "cs50.h" int main() { int x; x = get_int("get int "); printf("%i", x); return 0; } I get: sh-5.1$ make main ...
user avatar
0 votes
1 answer
294 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.&...
user avatar
  • 1
0 votes
1 answer
107 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 ...
user avatar
  • 1
0 votes
1 answer
84 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 ...
user avatar
  • 3
0 votes
2 answers
105 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
user avatar
0 votes
1 answer
53 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]) { ...
user avatar
0 votes
1 answer
99 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 ...
user avatar
1 vote
1 answer
29 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 ...
user avatar
0 votes
1 answer
214 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 ...
user avatar
  • 15
0 votes
1 answer
35 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-...
user avatar
  • 1
1 vote
0 answers
28 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:
user avatar
0 votes
0 answers
85 views

PSET Make Readability

i am having some problems trying to execute make readability. Can you help me? Thanks in advance!
user avatar
0 votes
3 answers
345 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 ...
user avatar
  • 3
0 votes
1 answer
22 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: ...
user avatar
0 votes
1 answer
126 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 ...
user avatar
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 ...
user avatar
  • 13
1 vote
2 answers
1k 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
user avatar
0 votes
1 answer
274 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
user avatar
0 votes
3 answers
3k 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 ...
user avatar
0 votes
1 answer
72 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. ...
user avatar
0 votes
1 answer
83 views

I cant make hello file

I did run update 50. Any suggestion?
user avatar
0 votes
1 answer
21 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 ...
user avatar
0 votes
1 answer
167 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 ...
user avatar
0 votes
0 answers
57 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 ...
user avatar
  • 3
0 votes
0 answers
67 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?
user avatar
  • 115
0 votes
1 answer
71 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 ...
user avatar
  • 3
0 votes
1 answer
26 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, ...
user avatar
0 votes
0 answers
171 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 ? ...
user avatar
6 votes
4 answers
72k 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?...
user avatar
0 votes
1 answer
127 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 ...
user avatar
  • 7
0 votes
1 answer
240 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
user avatar
1 vote
1 answer
435 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 ...
user avatar
1 vote
1 answer
155 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-...
user avatar
  • 47
0 votes
1 answer
246 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 ...
user avatar
  • 113
0 votes
1 answer
273 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 ...
user avatar
  • 63
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 ...
user avatar
1 vote
0 answers
379 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 ...
user avatar
  • 136
1 vote
1 answer
919 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 ...
user avatar
  • 17.4k
0 votes
2 answers
764 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 ...
user avatar
0 votes
1 answer
605 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:~$ ...
user avatar
  • 1
0 votes
3 answers
856 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 ...
user avatar
0 votes
1 answer
184 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: ...
user avatar
  • 1
2 votes
2 answers
333 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?
user avatar
  • 309
3 votes
2 answers
544 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 ...
user avatar
  • 389
2 votes
1 answer
483 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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
0 votes
3 answers
295 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 ./...
user avatar
  • 1
0 votes
1 answer
598 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 &...
user avatar
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, ...
user avatar