Questions tagged [compiling]

The tag has no usage guidance.

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

Terminal window not update

Struggling after Certain changes were made on the file and compiled as compiler failed to identify the changes made.I.e the terminal window displays the same errors in the file. This meant program ...
0
votes
1answer
42 views

Problems w/compiling pset1

Could anyone help me figure out why I can not compile, but get the following error: ~/workspace/pset1/mario/less/ $ make mario clang -fsanitize=signed-integer-overflow -fsanitize=undefined -ggdb3 -O0 ...
0
votes
1answer
415 views

CS50 IDE cs50.h library problem 2017

I seem to be having a problem accessing the cs50.h library. I've run update50 and, as of this writing, I appear to be running version 98. I have typed in exactly what was shown on a part of the ...
0
votes
1answer
718 views

Undefined reference to get_int

![][I've installed cs50. But this error: undefined reference to 'get_int' I do not understand why؟؟ ]
0
votes
2answers
5k views

Subscripted value is not an array

I am using exactly the same code as at HowStuffWorks to create a bubbling sorting. But I cannot compile code as I get the following error message: sorting.c:29:22: error: subscripted value is not an ...
0
votes
0answers
51 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?
1
vote
2answers
73 views

cs50 appliance won't compile

The CS50 appliance has been working fine, but it seems all of a sudden whenever I try compiling a program I get this error: bashL ./: Is a directory I can't understand why this is not working anymore!...
0
votes
1answer
75 views

Pset1 greedy.c compiling issue

I'm having a compiling issue with my code and I can not figure it out. It is saying that my variables are not initialized in a few areas. Can someone help me figure out why this may be? I've tried ...
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
167 views

argv, getting: EXC_BAD_ACCESS (code=0, address 0x0)

First off, I don't have the appliance, I had to place cs50.h in the same directory as my source code. As you will see from my code I did provide the correct header for that situation. The error in ...
2
votes
1answer
892 views

C Preprocessor Output: What is <built-in>

I wrote one of the most simple programs I could imagine: int main (void) { int a; } As you can see, there are no include files. The purpose is to understand a little bit more about the ...
1
vote
1answer
1k views

Why do I not have to link stdio.h while compiling with clang?

To compile this source code with clang, we had to link "cs50" library like this: clang hello.c -lcs50 but we did not have to link "stdio". why? /* hello.c */ #include <stdio.h> #include <...
2
votes
0answers
27 views

What is the point of the linker? Isn't its job already done by the preprocessor, when using the #include statements? [duplicate]

If the preprocessor takes the header files in the #include statements, such as #include , and puts them into the source code, why does the linker have to link it? Isn't the code for that header file ...
0
votes
3answers
622 views

pset 3 binary search

I know the logic behind binary search is simple but my code isn't compiling. I went along the lines of week 3's section. I am still getting compilation errors. int beginning = 0; int ending = n - 1; ...