Questions tagged [compile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

pset1 less greedy - keep on getting errors

I have added a first version of my code, however it is unable to compile and I just cannot figure out why. INPUT #include <cs50.h> #include <stdio.h> #include <math.h> int main(void)...
0
votes
1answer
54 views

Unable to compile pset1. Mario (Less comfortable)

I am unable to compile my file and get many errors. INPUT #include <cs50.h> #include <stdio.h> int main(void) //Prompt for the height of the pyramid int height; height = get_int (...
0
votes
0answers
36 views

Pset 3 runoff : I am getting{ :( runoff compiles code failed to compile}

I wrote my code but when I came to test it it gives me code failed to compile. I don't know why? :| here is my code #include <cs50.h> #include <stdio.h> #include <string.h> // Max ...
0
votes
1answer
72 views

pset3 tideman failed to compile

https://us-west-2.console.aws.amazon.com/cloud9/ide/393d9edee5b74d5abb364a24c01b987f?# I just finished the tideman problem, and everything works fine when I use it in the ide. However, when I run ...
1
vote
3answers
53 views

newby question, stuck

I wrote the following : #include <cs50.h> #include <stdio.h> int main(void) { //ask for name string name = get_string("What is your name?\n"); // print hello, name printf("...
0
votes
1answer
134 views

pset4 recover compiles, makes jpgs, but doesn't pass check50

My code passes 000.jpg check but misses on middle and end jpgs. :( recovers middle files correctly :( recovers last file correctly I looked at the hex code for the jpegs and it seemed fine, the ...
0
votes
1answer
122 views

Pset2 Caesar won't compile

My code won't compile and I can't tell why. All of the error messages I'm receiving are regarding my "for" statement and my use of the variable i. I also get an error message about my use of "string" ...
0
votes
2answers
189 views

hello.c wont compile

I saved the file as hello.c, and I think I'm inside /workspace/hello.c. However I get the message "no rule to make target 'hello'. Any idea what I'm doing wrong? Thanks
0
votes
1answer
34 views

Check50 error in pset4 recover exercise

I have the following problem, I finished the exercise "recover" in pset 4 and all the recovered images are fine (check them one by one), but the tool "check50" tells me that the program does not ...
0
votes
1answer
24 views

Are comment lines compiled at all?

Does clang store comments at all? If we could "uncompile" an executable back to a .c file would we see the coder's comments?
0
votes
1answer
78 views

Compiling dictionary.c

This is not a duplicate as the other questions really didnt "state" the problem. What I know is that you do not do make dictionary but instead do make or make speller. When I do that (note: this is in ...
0
votes
1answer
38 views

getting error message for greedy expeted identifier

jharvard@appliance (~/Dropbox/pset1): make greedy clang -ggdb3 -O0 -std=c99 -Wall -Werror greedy.c -lcs50 -lm -o greedy greedy.c:13:4: error: expected identifier or '(' { ^ 1 error ...
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
2answers
176 views

How can I compile to Windows from the appliance?

I am currently using the appliance through VMWare, and while doing the breakout program I find myself with 2 problems. One the game runs quite laggy, both versions (staff and mine), and it is quite ...
0
votes
1answer
819 views

what does '-Wall' flag in the clang mean?

I am reading a Makefile of one c file. clang -ggdb -std=c99 -Wall -Werror -o generate generate.c I am unable to understand what -Wall flag in the above line means?