1

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 function main': loop.c:(.text+0x19): undefined reference to get_int' collect2: error: ld returned 1 exit status make: *** [: loop] Error 1

1 Answer 1

1

Are you using CS50 ide ?

#include <cs50.h>

This library will only work if you use CS50 ide for compiling your code, otherwise it will not compile

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .