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
Add a comment
|
1 Answer
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