5 votes
Accepted

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

stdio.h is a header file from the C Standard Libraries, and their implementations are in the libc.a file, due to his common and extended use, this file is automatically linked by the compiler as if ...
  • 1,389
1 vote
Accepted

CS50 IDE cs50.h library problem 2017

The compiler command is make test (unless you want to supply all the switches for clang). Notice that make echos to the terminal the actual clang command it uses.
1 vote
Accepted

Subscripted value is not an array

The variable a is declared as a single integer. In the line if (a > a[y+1]) this code attempts to compare a to an array of the same variable name. This presents two problems. First, two vars can't ...
  • 66.7k
1 vote

cs50 appliance won't compile

I'm obviously new at this. The problem was that I was leaving a space between the ./ and the name of the file!
1 vote
Accepted

pset1 greedy.c won't compile using "make" but will using "clang"

are you trying make greedy.c ? if yes, try this; make greedy

Only top scored, non community-wiki answers of a minimum length are eligible