Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
84 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 ...
Javohir Abdullayev's user avatar
0 votes
1 answer
348 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 ...
Anjan's user avatar
  • 113
0 votes
1 answer
279 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 ...
daniel's user avatar
  • 63
0 votes
3 answers
964 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 ...
Subhaprada Chand's user avatar
0 votes
1 answer
607 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 &...
Paul Difesa's user avatar
1 vote
2 answers
134 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 ...
Himanshu Chawla's user avatar