Questions tagged [compilation-error]

The tag has no usage guidance.

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
67 views

Error in Caesar , can't fix . Need help

#include <stdio.h> #include <cs50.h> #include <string.h> #include <ctype.h> #include <stdlib.h> int main(int argc, string argv[]) { if (argc == 2) ...
0
votes
1answer
36 views

Readability compiling issue

Readability (Problem Set 2) #include <stdio.h> #include <cs50.h> #include <string.h> #include <ctype.h> #include <math.h> // Letters detects letters // Words detects ...
0
votes
0answers
18 views

Final Project C Makefile

For my final project for CS50, I'm designing a command-line C program but I'm having issues with compiling the program to test before submitting. I'm using three separate c files to store all my code (...
0
votes
1answer
402 views

CS50 pset 4 recover.c timed out while waiting for program to exit

#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> typedef uint8_t BYTE; int main(int argc , char* argv[]){ //checking number of arguments ...
0
votes
1answer
976 views

compiling clang string.c says relocation 0 has invalid symbol index 11

When i try to compile string.c file whose code is given below it say relocation 0 has invalid symbol index 11 ... and this happens on and on.. my code is : - #include <cs50.h> #include <...
0
votes
1answer
410 views

pset1 - Greedy Errors “error: expected expression”

Please help! I cant solve some errors (from: [http://docs.cs50.net/problems/greedy/greedy.html][1]) running this code: int main(void) { float change = 0; int coin_used = 0; int change2 = ...
0
votes
1answer
652 views

How to fix the “undefined references to GetString” error?

I can't get the GetString() function from the cs50 library to work. I have tried update50 and have rebooted several times and it is still throwing out this error: jharvard@appliance (~/Dropbox): ...
0
votes
0answers
1k views

how to fix the “expected identifier of '('” error?

what does this error mean? expected identifier or '(' { ^
0
votes
0answers
26 views

Am I using the “return” statement incorrectly?

I am getting this error message while trying to compile: "error: expected identifier or '('" "return (int)" ^ My code preceding the "return (int)" is a do ...while loop that sets int as n and uses "n ...
0
votes
0answers
136 views

I can't compile my code for pset 1 and I don't know why

I don't know what the problem is, it says the error was the lack of an "expected identifier or '('"
0
votes
0answers
282 views

week 4 | walkthroughs | button | compiler error “use of undeclared identifier 'GButton'”

make button » error: use of undeclared identifier 'GButton' jharvard@appliance (~/Dropbox/pset3): make button clang -ggdb3 -O0 -std=c99 -Wall -Werror button.c -lcs50 -lm -o button button.c:12:5: ...
0
votes
0answers
1k views

What does clang's “undefined reference” error mean?

What do the following compilation errors mean and how can I fix them? jharvard@appliance (~/Dropbox/pset3/find): make helpers clang -ggdb3 -O0 -std=c99 -Wall -Werror helpers.c -lcs50 -lm -o ...
0
votes
0answers
650 views

“linker command failed with exit code 1” and other errors when using make

I get multiple errors when I try to compile speller.c from pset6. I've tried switching to -std=gnu89 and I get the same thing. What is going on? jharvard@appliance (~/Dropbox/pset6): make clang -...
0
votes
1answer
578 views

Problem with “expression result unused error” in for-loop?

I am getting an error message of "expression result unused" for the bottom two for loops (specifically h + 1 and s - 1). I've tried looking for through the other questions for an answer but nothing ...
-1
votes
1answer
25 views

Do I need to install any compiler for compiling a C program in cs50 sandbox? If not then why am I not being able to compile my program?

I am new to programming and has basicly started with c program but after i write a code and try to compile it by,"make untitled1" I get an error message.