Questions tagged [make]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
21 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
1answer
17 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 ...
0
votes
1answer
81 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
1answer
13 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
0answers
18 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
1answer
68 views

PSET Make Readability

i am having some problems trying to execute make readability. Can you help me? Thanks in advance!
0
votes
3answers
258 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
1answer
17 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
1answer
61 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
1answer
1k 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
2answers
635 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
1answer
211 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
2answers
2k 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
1answer
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. ...
0
votes
1answer
71 views

I cant make hello file

I did run update 50. Any suggestion?
0
votes
1answer
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 ...
0
votes
1answer
147 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
0answers
52 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
0answers
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?
0
votes
1answer
70 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
1answer
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, ...
0
votes
0answers
88 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 ? ...
3
votes
2answers
53k 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
1answer
123 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
1answer
230 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
0
votes
1answer
355 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
1answer
152 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
1answer
216 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
1answer
269 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
1answer
767 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
0answers
340 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
1answer
864 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
2answers
729 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
1answer
513 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
3answers
713 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
1answer
175 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
2answers
282 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
2answers
514 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
1answer
396 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
1answer
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
2answers
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
3answers
282 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
1answer
588 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
0answers
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, ...
2
votes
1answer
638 views

How does the Makefile from pset 6 work?

Could someone help provide clarity in the matter of the Makefile used for pset 6? I understand everything up to line 32, that is where it gets confusing. Here the dependencies for the program $(EXE) ...
0
votes
1answer
145 views

How do I connect VirtualBox to the Internet without hardware virtualization? [duplicate]

My computer does not have a HAV capable processor. Is there a workaround to allow VirtualBox to access the Internet? Running on Ubuntu 14.04 so other possibility is to run CS50 projects directly, but ...
1
vote
2answers
122 views

Why “make” doesn't throw error when I include some libraries like “string.h”?

Why doesn't make throw an error when I include some libraries like string.h? make uses options such as -lcs50 and -lm to link the object files for header file cs50.h and math.h. For example, the ...
4
votes
6answers
12k views

No Rule to Make Target

I have created very first C program hello world. Its exact copy of the program from 1 week, lecture continued. When I try to make hello in terminal, I got this error message: make: *** No rule to ...